home *** CD-ROM | disk | FTP | other *** search
/ 500 MB Nyheder Direkte fra Internet 2 / 500 MB nyheder direkte fra internet CD 2.iso / start / data / text / dos.txt < prev    next >
Text File  |  1994-09-21  |  239KB  |  4,574 lines

  1.  
  2.             GET INTO DOS
  3.   The typical business uses IBM PC clones, because they cost 
  4. little and run the best business software. (For example, the 
  5. typical IBM PC clone costs half as much as the typical Mac, and 
  6. the IBM PC versions of database programs are better than the Mac 
  7. versions.)
  8.   The first software to get for an IBM PC or clone is the disk 
  9. operating system (DOS). It teaches the computer how to handle 
  10. disk drives. The most popular DOS for the IBM PC and clones was 
  11. invented by a company called MicroSoft, which worked together 
  12. with IBM to invent MicroSoft DOS, also called MS-DOS.
  13.   MS-DOS comes on a pile of floppy disks, which must be fed into 
  14. the computer before you use any other disks. If you buy a 
  15. computer with a hard disk, your dealer's probably fed the MS-DOS 
  16. floppies into the computer and copied their info onto the hard 
  17. disk, so you don't need the floppies anymore.
  18.  
  19.            Versions of DOS
  20.   MS-DOS comes in many versions. Versions for the IBM PC are 
  21. called PC-DOS. Versions for clones built by Compaq are called 
  22. Compaq DOS.
  23.   Make sure you get the MS-DOS version that's intended for your 
  24. computer. Get it from the dealer who sold you the computer.
  25.   If you use the wrong version of DOS ___ for example, if you try 
  26. to use PC-DOS on a Compaq computer, or try to use Compaq DOS on a 
  27. different brand of clone ___ the computer will gripe (especially 
  28. when you try writing programs in BASIC) or will give you the 
  29. wrong time or will handle your disk drives too slowly or do 
  30. something else weird. You don't need those hassles, so get the 
  31. right version of DOS!
  32.   MS-DOS has been improving. For example, let's look at how 
  33. Microsoft and IBM have gradually improved PC-DOS (which is the 
  34. IBM PC version of MS-DOS).
  35.   The original version of PC-DOS was called version 1. Then came 
  36. an improvement called version 1.1. Then came versions 2, 2.1, 3, 
  37. 3.1, 3.2, and 3.3.
  38.   Version 1 handled just the original IBM PC and its 5¼-inch 
  39. floppy disks. That version wrote on just one side of each disk 
  40. and put 8 sectors on each track, so that each disk held 160K. 
  41. Version 1.1 could write on both sides of each disk, so that each 
  42. disk held 320K.
  43.   Version 2 could also handle the IBM PC XT and its 10-megabyte 
  44. hard disk. That version also squeezed more data onto each floppy 
  45. disk: onto each track, it put 9 sectors instead of 8, so the 
  46. floppy disk held 360K instead of 320K. Version 2.1 could also 
  47. handle the IBM PC Junior.
  48.   Version 3 could also handle the IBM PC AT, its 20-megabyte and 
  49. 30-megabyte hard disks, and its high-density 5¼-inch floppy disks 
  50. (which held 1.2 megabytes instead of 360K). Version 3.1 could 
  51. also handle networks. Version 3.2 could also handle the IBM PC 
  52. Convertible and its 3½-inch 720K floppies. Version 3.3 could also 
  53. handle the IBM PS/2 and its 3½-inch 1.44 megabyte floppies.
  54.   Other early versions of MS-DOS (such as Compaq DOS) were 
  55. numbered similarly to PC-DOS. For example, Compaq
  56. DOS version 3.31 resembled PC-DOS version 3.3 but let you more 
  57. easily handle hard disks bigger than 30 megabytes.
  58.                                          In July 1988, Microsoft 
  59. and IBM began selling version 4. Like Compaq DOS version 3.31, it 
  60. let you handle huge hard disks easily. But alas, version 4 
  61. consumed too much RAM and was incompatible with some older 
  62. programs.
  63.                                          In June 1991, Microsoft 
  64. and IBM began selling version 5, which fixed DOS 4's problems and 
  65. included many exciting new commands. In 1993 they began selling 
  66. version 6, which was even fancier.
  67.                                          Afterwards, Microsoft 
  68. and IBM parted company and decided to compete against each other. 
  69. IBM invented and sold version 6.1, without any involvement from 
  70. Microsoft. Then Microsoft decided to fight back by inventing and 
  71. selling version 6.2. Then IBM retaliated with version 6.3.
  72.                                          Headaches Some DOS 
  73. versions give you headaches.
  74.                                          Versions 1.0 and 1.1 
  75. can't handle hard disks at all.
  76.                                          Versions 2.0 and 2.1 
  77. have difficulty handling hard disks bigger than 16 megabytes. 
  78. Here's why. When you first use a hard disk, DOS is supposed to 
  79. search for bad sectors on the hard disk, draw a map of where 
  80. those bad sectors are, and remember to avoid those bad sectors. 
  81. Versions 2.0 and 2.1 search for bad sectors throughout the first 
  82. 16 megabytes but don't bother to map the bad sectors on the rest 
  83. of a big hard disk. If you use those versions of DOS, everything 
  84. will seem fine at first; but when you finally fill more than 16 
  85. megabytes of your disk, DOS will eventually encounter bad sectors 
  86. it didn't map, get upset, and refuse to run your programs.
  87.                                          Versions 3.0 and 3.2 
  88. make lots of errors. Avoid them.
  89.                                          Versions before 3.2 
  90. can't handle 3½-inch floppies. Version 3.2 handles 3½-inch 
  91. floppies, but just if they're double-density instead of 
  92. high-density.
  93.                                          Version 4 consumes too 
  94. much RAM.
  95.                                          Versions 6.1 and 6.3 are 
  96. weird, since they're the only version that Microsoft didn't help 
  97. design. They're the only version that doesn't accept standard 
  98. Microsoft commands.
  99.                                          Versions 3.3, 5, and 6.2 
  100. work fine. They're the versions used by most corporations. 
  101. Version 6.0 works fine also, but just if you avoid using its 
  102. three fanciest routines (Double Space, Smart Drive, and Mem 
  103. Maker), which are disastrously unreliable. In version 6.2, those 
  104. routines have been fixed and work better, but they still cause 
  105. enough complications so you should avoid them. (I explain why in 
  106. the ``Repairs'' chapter.)
  107.                                          A company called Stac 
  108. Electronics sued Microsoft for putting Stac's ideas into Double 
  109. Space. In 1994, Stac won the suit. The judge ordered Microsoft to 
  110. pay Stac and stop selling versions 6.0 and 6.2, so Microsoft came 
  111. out with version 6.21 (which omits Double Space) and version 6.22 
  112. (which includes a Double Space clone called Disk Space). When 
  113. Stac complained that Microsoft wasn't removing all remaining 
  114. copies of versions 6 and 6.2 from shelves quickly enough, 
  115. Microsoft squashed the problem by paying Stac even more and 
  116. buying 15% of the Stac company itself. So now Microsoft is a Stac 
  117. shareholder, and the two companies are buddies.
  118.                                          DR DOS Instead of buying 
  119. MS-DOS, you can buy an imitation called DR DOS (or Novell DOS). 
  120. It's made by a company called Digital Research (DR), which is now 
  121. owned
  122. by Novell.
  123.   Though DR DOS resembles MS-DOS, I prefer MS-DOS because it 
  124. includes BASIC and is more compatible with Windows and other 
  125. software.
  126.   Which version I'll emphasize I'll emphasize how to use DOS 6.2. 
  127. My explanation of DOS 6.2 applies to all of its variants (DOS 
  128. 6.20, 6.21, and 6.22).
  129.   Which other versions I'll explain In case you don't have DOS 
  130. 6.2 yet, I'll also explain earlier versions of DOS and how they 
  131. differ.
  132.   To keep this chapter mercifully short, I'll assume your 
  133. computer is normal. For example, I'll assume you're using a 
  134. reasonably new version of DOS (version 2 or higher), you're not 
  135. using IBM's weird versions (6.1 and 6.3), and you're not using 
  136. DR-DOS or Novell DOS.
  137.   Modern versus classic DOS versions 5, 6, and 6.2 are similar to 
  138. each other. I'll refer to them as modern DOS. Earlier DOS 
  139. versions (2, 2.1, 2.2, 3, 3.1, 3.2, 3.3, and 4) are called 
  140. classic DOS.
  141.   Notice that in the computer industry, the word ``classic'' is a 
  142. euphemism that means ``old, obsolete, and decrepit''. Go ahead: 
  143. follow that tradition! Next time you meet a person who's old, 
  144. obsolete, and decrepit, say ``You're a classic!''
  145.  
  146.                 Cost
  147.   The best way to get DOS is from the dealer who sold you the 
  148. computer.
  149.   Most dealers include DOS in the computer's price. A few dealers 
  150. charge for DOS separately.
  151.   Piracy If you buy two computers, you must buy two copies of 
  152. DOS. It's illegal to buy just one DOS and copy it to the other 
  153. computer. That's called illegal copying; it's piracy.
  154.   Some dealers illegally copy DOS onto the computer's hard disk 
  155. without paying Microsoft or IBM for it. Recently, Microsoft has 
  156. been requiring every dealer who copies DOS onto a hard disk to 
  157. give the customer an official Microsoft certificate of 
  158. authenticity with a hologram sticker on it. The certificate comes 
  159. from Microsoft and proves that the DOS was paid for. The hologram 
  160. sticker shows you a 3-dimensional picture of the DOS version 
  161. number (such as ``6.2'').
  162.   Usually, the certificate comes with an official Microsoft 
  163. manual (not just a book from a bookstore!) and an official set of 
  164. DOS floppy disks (on which are pasted official Microsoft labels 
  165. that are printed, not handwritten!). But the manual and floppies 
  166. are optional, and some dealers are too cheap to provide them. If 
  167. you get neither a manual nor floppies, your dealer is either a 
  168. crook, a cheapskate, or an ass ___ or the dealer got the goods 
  169. from a manufacturer who's a crook, a cheapskate, or an ass!
  170.   How to upgrade If you own an old version of DOS, you can switch 
  171. to MS-DOS 6.22 by getting the MS-DOS 6.22 upgrade for about $50. 
  172. Switching is simple if you have a high-density 3½-inch floppy 
  173. drive and already own a version numbered above 2.1.
  174.   If you own MS-DOS 6.0, you can switch to MS-DOS 6.22 for under 
  175. $10 by getting the MS-DOS 6.22 Step Up disk (which is 3½-inch 
  176. high-density). For example, Staples sells that disk for $8.49. 
  177. That cheap disk works just if you already own MS-DOS 6.0 (or 6.20 
  178. or 6.21). It does not work if you own an older DOS and does not 
  179. work if you own DOS 6.1 or 6.3 (which are the weird versions by 
  180. IBM). Since it costs so little and does so little (it just turns 
  181. 6.0 or 6.20 or 6.21 into
  182. 6.22, which is almost the same!), it does not come with a 
  183. certificate, hologram, or manual.
  184.  
  185.                                            List of commands & equations
  186.                                          To use DOS, you put your 
  187. fingers on the keyboard and type a DOS command or equation. The 
  188. popular DOS commands & equations are explained on these pages:
  189. Command                                            What the 
  190. computer will do                                                       Page
  191. a:                                                  make drive A 
  192. be the current drive                                                    106
  193. attrib +r mary                                      make MARY be 
  194. a read-only file                                                        134
  195. b:                                                  make drive B 
  196. be the current drive                                                    106
  197. backup c:mary a:                                    copy MARY to 
  198. a set of floppies in drive A                                            132
  199. c:                                                  make drive C 
  200. be the current drive                                                    106
  201. cd sarah                                            make SARAH be 
  202. the current directory                                                   107
  203. chkdsk                                              check the 
  204. disk for bytes and errors                                               108
  205. cls                                                 clear the 
  206. screen, so it becomes blank                                             102
  207. copy con mary                                       copy from 
  208. keyboard to a file called MARY                                          112
  209. date                                                show the 
  210. date, and let it be changed                                             102
  211. defrag                                              rearrange 
  212. files so they're not fragmented                                         128
  213. del mary                                            delete a file 
  214. called MARY from the disk                                               114
  215. deltree sarah                                       delete the 
  216. SARAH folder & everything in it                                         114
  217. dir                                                 show a 
  218. directory of all files                                                  103
  219. dir sarah                                           show a 
  220. directory of all the files in SARAH                                     105
  221. dir sarah /s                                        show the 
  222. SARAH directory & subdirectories                                        129
  223. diskcopy a: b:                                      make disk B 
  224. be an exact copy of disk A                                              111
  225. do music                                            do the MUSIC 
  226. program in MUSIC folder                                                 130
  227. echo off                                            stop 
  228. displaying DOS commands                                                 116
  229. echo wow                                            show the word 
  230. "wow" on the screen                                                     102
  231. edit mary                                           edit file 
  232. called MARY, using modern editor                                        114
  233. edlin mary                                          edit file 
  234. called MARY, using an old editor                                        115
  235. fdisk                                               partition the 
  236. hard disk into C, D, E, etc.                                            124
  237. format a:                                           format the 
  238. disk in drive A                                                         110
  239. format a: /s                                        format disk 
  240. in drive A & make it bootable                                           124
  241. help                                                list all the 
  242. DOS commands & explain them                                             129
  243. Lh doskey                                           load the 
  244. doskey driver into upper memory                                         122
  245. Lh mode LPT1 retry=b           wait for printer to respond, even 
  246. if long wait                                                            122
  247. Lh mouse                                            load the 
  248. mouse driver into upper memory                                          121
  249. Lh mscdex /d:mscd000           load CD-ROM driver into upper 
  250. memory                                                                  122
  251. Lh share                                            check if 
  252. programs interfere with each other                                      122
  253. md sarah                                            make a new 
  254. directory, called SARAH                                                 112
  255. mem                                                 show how big 
  256. the RAM memory is                                                       127
  257. more<mary                                           show a file 
  258. called MARY, a page at a time                                           130
  259. move mary a:                                        move MARY to 
  260. drive A, and delete from C                                              114
  261. msav                                                run the 
  262. MicroSoft Anti-Virus program                                            128
  263. msbackup                                            copy from the 
  264. hard disk to a set of floppies                                          131
  265. msd                                                 make 
  266. MicroSoft Diagnotics analyze computer                                   127
  267. path c:\dos                                         whenever a 
  268. program not found, search c:\dos                                        121
  269. print mary                                          copy a file 
  270. called MARY onto paper                                                  126
  271. prompt $p$g                                         make prompt 
  272. be ``C:\>'' instead of ``C>''                                           121
  273. rd sarah                                            remove 
  274. directory SARAH from the disk                                           114
  275. rem written by Joey                                 ignore this 
  276. remark & skip ahead to next line                                        129
  277. ren mary lambchop                                   rename MARY; 
  278. change to LAMBCHOP                                                      114
  279. restore a: c: /s                                    copy all 
  280. backed-up files to the hard disk                                        132
  281. scandisk                                            scan the disk 
  282. for errors and fix them                                                 127
  283. set temp=c:\dos                                     define 
  284. ``temp'' to mean ``c:\dos''                                             121
  285. subst a: b:\                                        when told to 
  286. use drive A, will use B instead                                         130
  287. sys a:                                              copy the DOS 
  288. system files to drive A                                                 124
  289. time                                                show the 
  290. time, and let it be changed                                             102
  291. type mary                                           show, on the 
  292. screen, what's in the MARY file                                         113
  293. undelete                                            try to 
  294. retrieve any files accidentally deleted                                 129
  295. unformat a:                                         try to 
  296. unformat the disk in drive A                                            110
  297. ver                                                 say which 
  298. version of DOS is being used                                            102
  299. win                                                 start running 
  300. Windows                                                                 122
  301. xcopy a: b: /s                                      copy all 
  302. files and subdirectories from A to B                                    135
  303.  
  304. Equation                                                     
  305. Meaning                                                                Page
  306. buffers=40                                                   
  307. handle 40 sectors at once                                               119
  308. device=dos\emm386.exe ram d=48                               use 
  309. expanded RAM                                                            118
  310. device=dos\himem.sys /testmem:off                            use 
  311. extended RAM                                                            118
  312. devicehigh=dos\ansi.sys                                      use 
  313. special characters                                                      119
  314. devicehigh=dos\setver.exe                                    
  315. handle old software                                                     119
  316. devicehigh=mtmcdas.sys /d:mscd000                            use 
  317. CD-ROM drive                                                            120
  318. dos=high,umb                                                 use 
  319. high & upper RAM                                                        119
  320. files=50                                                     
  321. handle 50 files at once                                                 119
  322. stacks=0,0                                                   
  323. create no stacks                                                        119
  324.           How to start DOS
  325.   Here's how to use start using DOS. If you ever have difficulty 
  326. following my instructions, phone me anytime for free help at 
  327. 617-666-2666.
  328.   DOS comes on a pile of floppy disks. When you buy a new 
  329. computer, your dealer typically copies DOS onto the hard disk for 
  330. you (so that the hard disk contains DOS already). Copying DOS 
  331. onto the hard disk is called installing (or loading) DOS onto the 
  332. hard disk.
  333.   Here's how to use a computer whose hard disk contains DOS.
  334.   If your computer doesn't have a hard disk yet, or its hard disk 
  335. doesn't contain DOS yet, practice on a friend's computer whose 
  336. hard disk does contain DOS. (Later, in a section called ``How to 
  337. make a blank hard disk bootable'', I'll explain how to copy DOS 
  338. onto your hard disk.)
  339.   Unpack the computer When you buy a computer system, it 
  340. typically comes in three cardboard boxes. Open them, and put 
  341. their contents on your desk.
  342.   One box contains the monitor. One box contains the printer. The 
  343. third and biggest box contains the computer's main part (the 
  344. system unit), keyboard, mouse, and floppy disks.
  345.   Each box also contains power cords, cables, and instruction 
  346. manuals.
  347.   Here are exceptions:
  348. If you didn't buy a printer, the printer box is missing.
  349. If you bought a tower computer, put it on the floor instead of on 
  350. your desk.
  351. If you bought a portable computer (notebook or laptop), there is 
  352. no monitor.
  353. Some computers don't come with a mouse.
  354.   Connect the cables Into the back of the system unit, plug the 
  355. cables that come from the monitor, printer, keyboard, and mouse. 
  356. Into your wall's electrical socket, plug the power cords that 
  357. come from the monitor, printer, and system unit.
  358.   Here are exceptions:
  359. For some computers, such as the Leading Edge Model D, the 
  360. keyboard's cable plugs into the system unit's FRONT instead of 
  361. back.
  362.  
  363. For some monochrome monitors, the power cord plugs into the 
  364. system unit instead of into the wall.
  365.  
  366. For portable computers, the keyboard and screen come attached to 
  367. the system unit, so you don't need to run cables between them.
  368.   Find the floppy drives At the front of the system unit, you'll 
  369. see one or two slots. (In most computers, the slots are 
  370. horizontal.) You can put floppy disks in those slots. Those slots 
  371. are called the floppy drives.
  372.   Exception:
  373. If your computer is a notebook or laptop, the floppy drives are 
  374. in the computer's right side instead of in the front.
  375.   What's in the floppy drives? Remove any disks from the floppy 
  376. drives, so that the floppy drives are empty and you can start 
  377. fresh.
  378.   Does your computer have a hard disk containing DOS? If so, your 
  379. computer is normal: leave the floppy drives empty and skip ahead 
  380. to the section called ``Turn on the computer''.
  381.   If your computer does not have a hard disk ___ or the hard disk 
  382. doesn't contain DOS yet ___ you must put the main DOS floppy disk 
  383. into the main floppy drive. Here's how. . . . 
  384.   Step 1: grab the main DOS floppy disk. That disk usually has a 
  385. label that says ``DOS Disk 1'' or ``DOS Program Disk'' or ``DOS 
  386. Install Disk''. Make sure you grab the original disk, not a copy 
  387. made by a friend. (On the original disk, the label
  388. is printed; on a copy, the label is usually handwritten.)
  389.                                          Step 2: find the main 
  390. floppy drive. If you have two floppy drives, the main floppy 
  391. drive is usually the one on the left or top.
  392.                                          Step 3: put that disk 
  393. into that drive. If the drive's slot is horizontal, make sure the 
  394. disk's label is on top of the disk; if the slot is vertical, make 
  395. sure the disk's label is on the disk's left side. If the disk is 
  396. 5¼-inch, it has a big oval cutout; if the disk is 3½-inch, it has 
  397. a chrome metal slider; make sure that cutout or slider goes into 
  398. the drive before the label does.
  399.                                          If the disk is 5¼-inch, 
  400. close the drive's door. Here's how: if the slot is horizontal, 
  401. pull the door latch down; if the slot is vertical, pull the door 
  402. latch to the right.
  403.                                          Turn on the computer 
  404. Flip the computer's power switch to the ON position.
  405.                                          Can't find the power 
  406. switch? Here are some hints. . . . 
  407.                                          The power switch is on 
  408. or near the system unit's right side. (If you don't find the 
  409. switch on the right side, check the right part of the front side 
  410. or the right part of the back side.)
  411.                                          On traditional 
  412. computers, the power switch is red. It might say ``1'' instead of 
  413. ``ON'' and ``0'' instead of ``OFF''.
  414.                                          On some computers (such 
  415. Quantex's), the power ``switch'' is actually a pushbutton on the 
  416. front, near the right.
  417.                                          Turn on the screen Turn 
  418. on the computer's screen (monitor or TV). If you're using a TV, 
  419. turn it to channel 3, 4, or 33.
  420.                                          After a few seconds, the 
  421. screen will display some messages. (If you don't see the messages 
  422. clearly, make sure the cable from the screen to the system unit 
  423. is plugged in tightly, and adjust the screen's contrast and 
  424. brightness knobs.)
  425.                                          Examine the keyboard 
  426. Test your powers of observation by staring at the keyboard. Try 
  427. to find the following keys (but don't press them yet). . . . 
  428.                                          Find the ENTER key. 
  429. That's the big key on the right side of the keyboard's main 
  430. section. It has a bent arrow on it. It's also called the RETURN 
  431. key. You press it at the end of every line you type; it makes the 
  432. computer read what you typed.
  433.                                          Find the BACKSPACE key. 
  434. It's above the ENTER key and to the right of the + key. It has a 
  435. left-arrow on it. You press it when you want to erase a mistake.
  436.                                          Find the key that has 
  437. the letter A on it. When you press the A key, you'll be typing a 
  438. small ``a''.
  439.                                          Near the keyboard's 
  440. bottom left corner, find the SHIFT key. It has an up-arrow on it. 
  441. Under the ENTER key, you'll see another SHIFT key. Press either 
  442. SHIFT key when you want to capitalize a letter. For example, when 
  443. you want to type a capital A, hold down a SHIFT key; and while 
  444. you keep holding down the SHIFT key, tap the A key.
  445.                                          Find the key that looks 
  446. like this:
  447. ┌───┐
  448. │!  │
  449. │1  │
  450. └───┘
  451. It's near the keyboard's top left corner. That's the 1 key. You 
  452. press it when you want to type the number 1. Press the keys to 
  453. its right when you want to type the numbers 2, 3, 4, 5, 6, 7, 8, 
  454. 9, and 0. If you press the 1 key while holding down a SHIFT key, 
  455. you'll be typing an exclamation point (!). Here's the rule: if a 
  456. key shows two symbols (such as ! and 1), and you want to type the 
  457. top symbol (!), you must typically hold down a SHIFT key.
  458.   Find the key that has the letter U on it. To the right of that 
  459. key, you'll see the letters I and O. Don't confuse the letter I 
  460. with the number 1; don't confuse the letter O with the number 0.
  461.   In the keyboard's bottom row, find the wide key that has 
  462. nothing written on it. That's the SPACE bar. Press it whenever 
  463. you want to leave a blank space.
  464.  
  465.           Get to the standard C prompt
  466.   The standard C prompt is this symbol:
  467. C:\>
  468. It consists of 4 characters: a capital C, a colon, a backslash, 
  469. and a greater sign.
  470.   Look at the screen's bottom message. If the bottom message says 
  471. ___ 
  472. C:\>
  473. your computer is ready for DOS: skip ahead to the section called 
  474. ``Simple commands''.
  475.   If the bottom message does not say ``C:\>'', your computer 
  476. isn't ready. Here's what to do:
  477. On the screen                   What to do
  478. bottom message says ``C:\DOS>'' Type ``cd \'' (then press the 
  479. ENTER key).
  480. bottom message says ``C:\'' then a word then ``>''Type ``cd \'' 
  481. (then press the ENTER key).
  482.  
  483. bottom message says ``C>''      Type ``prompt $p$g'' (then press 
  484. the ENTER key).
  485.  
  486. bottom message says ``D>'', ``E>'', or ``F>''Type ``c:'' (then 
  487. press the ENTER key).
  488. bottom message begins with ``D:'', ``E:'', or ``F:''Type ``c:'' 
  489. (then press the ENTER key).
  490.  
  491. bottom message says ``Enter new date (mm-dd-yy):''Press the ENTER 
  492. key.
  493. bottom message says ``Enter new time:''Press the ENTER key.
  494.  
  495. bottom message says ``ENTER=Continue F1=Help F3=Exit''Tap the F3 
  496. key then the Y key.
  497. bottom message says ``or press Esc to Exit''Do NOT insert the 
  498. SELECT disk. Just tap the Esc key.
  499.  
  500. bottom right corner says ``Doc 1 Pg 1 Ln 1" Pos 1"''Tap the F7 
  501. key, then the N key, then the Y key.
  502.  
  503. top line says ``Program Manager''Tap the Alt key, then the F key, 
  504. then the X key, then the ENTER key.
  505. top line says ``MS-DOS Shell'' or ``Start Programs''Tap the F3 
  506. key.
  507.  
  508. a list of choices               Choose ``Exit to DOS''.
  509.   After doing one of those actions, check whether the screen's 
  510. bottom message says ``C:\>'' yet. If it does not say ``C:\>'', 
  511. look through that list of actions again, and keep trying until 
  512. you finally see ``C:\>'' at the bottom of the screen. When you 
  513. finally see ``C:\>'', skip ahead to the next section (entitled 
  514. ``Simple commands'').
  515.   Non-system disk Instead of saying ``C:\>'', the computer might 
  516. gripe by saying:
  517. Non-System disk or disk error
  518. Replace and press any key when ready
  519. That means you put the wrong floppy disks in the floppy drives, 
  520. or your hard disk doesn't contain DOS yet.
  521.   When you get that message, remove any floppy disks from the 
  522. floppy drives, so the floppy drives are empty.
  523.   If your dealer says your computer has a hard disk containing 
  524. DOS, leave the floppy drives empty. If your dealer says your 
  525. computer lacks a hard disk (or your hard disk lacks DOS), try 
  526. again to put the main DOS disk into the main floppy drive.
  527.   Then press the ENTER key.
  528.   BASIC words If your computer is manufactured by IBM, the bottom 
  529. message might be this list of BASIC words:
  530. 1LIST   2RUN   3LOAD"  4SAVE"  5CONT  6,"LPT1 7TRON  8TROFF 
  531. 9KEY    0SCREEN
  532. Treat that problem just as if the computer had said ``Non-System 
  533. disk''.
  534.   A prompt Instead of saying ``C:\>'', the computer might say 
  535. ``A>'' or ``A:\>''. That means the computer is ignoring the 
  536. concept of a ``hard disk''. Here's what to do.
  537.   If your computer has a hard disk containing DOS, turn off the 
  538. screen and computer, remove any floppy disks from the floppy 
  539. drives, wait until the fan in the computer's motor becomes 
  540. silent, then turn the computer and screen back on.
  541.   If your computer has no hard disk (or its hard disk is broken 
  542. or lacks DOS), you're stuck! You must use ``A>'' or ``A:\>'' 
  543. instead of ``C:\>'', and a few of the examples in this book won't 
  544. work on your computer (until you get a hard disk containing DOS).
  545.                                                        How to shut down
  546.                                                      When you 
  547. finish using the computer, here's the safest way to shut the 
  548. computer down, so you don't lose any data.
  549.                                                      First, make 
  550. the computer display the standard C prompt, so the screen's 
  551. bottom message is this:
  552. C:\>
  553. (If you can't figure out how to make the computer display that C 
  554. prompt, make it display ``A:\>'' or ``A>'' or ``1 LIST'' 
  555. instead.)
  556.                                                      Remove any 
  557. floppy disks from the drives.
  558.                                                      To be safe, 
  559. wait ten seconds. (The purpose of that wait is to let the DOS 6.0 
  560. version of the SMARTDRIVE caching program finish editing your 
  561. hard disk. While it edits, you'll hear some clicking sounds. If 
  562. you're sure you're not using that caching program or a similar 
  563. program, you don't need to wait. If you're using a different 
  564. version of SMARTDRIVE ___ such as the version that comes with DOS 
  565. 5 or DOS 6.2 or Windows ___ you don't need to wait.)
  566.                                                      If your 
  567. screen is a monitor or TV, turn it off. Then turn off the 
  568. computer.
  569.  
  570.            SIMPLE COMMANDS
  571.   After the C prompt (which is ``C:\>''), the computer waits for 
  572. you to type a DOS command. When typing a DOS command, remember 
  573. these principles:
  574. Type the command after the C prompt. Remember that the C prompt 
  575. is typed by the computer, not by you.
  576.  
  577. To capitalize a letter, or type a character that's on the top 
  578. part of a key, hold down the SHIFT key; and while you keep 
  579. holding down the SHIFT key, tap the key that has the character 
  580. you want.
  581.  
  582. If you type a command incorrectly, press the BACKSPACE key, which 
  583. is above the ENTER key and has a left-arrow on it.
  584.  
  585. When you finish typing a command, press the ENTER key. That key 
  586. makes the computer read what you typed.
  587.   Start by trying these simple DOS commands. . . . 
  588.  
  589.             Version (ver)
  590.   After the C prompt you can type ``ver'', like this:
  591. C:\>ver
  592. (When you finish typing that command, remember to press the ENTER 
  593. key.)
  594.   The ``ver'' command makes the computer tell you which VERsion 
  595. of MS-DOS you're using. For example, if you're using MS-DOS 
  596. Version 6.2, the computer will say:
  597. MS-DOS Version 6.20
  598.  
  599.                 Echo
  600.   The computer's your obedient slave: it will say whatever you 
  601. wish!
  602.   For example, here's how to make the computer say ``wow''. After 
  603. the C prompt, type ``echo wow'', like this:
  604. C:\>echo wow
  605. (To type the space after the word echo, press the SPACE bar, 
  606. which is the long horizontal bar at the bottom of the keyboard.) 
  607. Remember to press the ENTER key at the end of that command. Then 
  608. the computer will say:
  609. wow
  610.   If you want the computer to say it loves you, type this:
  611. C:\>echo I love you
  612. (To capitalize the letter I, hold down the SHIFT key; and while 
  613. you keep holding down the SHIFT key, tap the I key.) That command 
  614. makes the computer say:
  615. I love you
  616.   If you want the computer to say it likes strawberry ice cream, 
  617. type this:
  618. C:\>echo I like strawberry ice cream
  619. Then the computer will say:
  620. I like strawberry ice cream
  621.   Be creative! Make the computer say something wild!
  622.   Notice that the echo command makes the computer act like a 
  623. canyon: whatever you say into the computer, the echo command 
  624. makes the computer echo back.
  625.  
  626.          Clear screen (cls)
  627.   Suppose you make the computer say ``I love you'' (and other 
  628. things that are even wilder), and then your boss walks by. You 
  629. might be embarrassed to let your boss see your love messages. 
  630. Here's how to hide all the screen's messages.
  631.                                          After the C prompt, type 
  632. ``cls'', like this:
  633. C:\>cls
  634. The ``cls'' command makes the computer CLear the Screen, so all 
  635. messages on the screen are erased and the screen becomes blank. 
  636. The only thing that will remain on the screen is ___ 
  637. C:\>
  638. so that you can give another command.
  639.  
  640.                                                        Date
  641.                                          The computer has a 
  642. built-in calendar. To use it, type ``date'' after the C prompt 
  643. like this:
  644. C:\>date
  645. That makes the computer tell you the date. For example, if today 
  646. is Wednesday, January 24, 1996, the computer should say:
  647. Current date is Wed 01-24-1996
  648.                                          To remember the date, 
  649. the computer uses its built-in digital clock/calendar. If the 
  650. clock/calendar's battery has run down or is missing, the computer 
  651. will say a wrong date.
  652.                                          Confirming the date 
  653. After the computer says what it thinks the date is, it says:
  654. Enter new date (mm-dd-yy):
  655.                                          If the computer's date 
  656. seems correct, press the ENTER key.
  657.                                          If you notice that the 
  658. computer's date is wrong, remind the computer of the correct 
  659. date. For example, if the correct date is January 24, 1996, type 
  660. ``1-24-96'' then press ENTER at the end of that date. (Do not 
  661. type ``Wednesday'' or ``Wed''; the computer will figure that out 
  662. automatically.)
  663.  
  664.                                                        Time
  665.                                          To find out what time it 
  666. is, type ``time'' after the C prompt like this:
  667. C:\>time
  668. That makes the computer tell you the time.
  669.                                          For example, if the time 
  670. is 2.71 seconds after 1:45AM, the computer will say:
  671. Current time is  1:45:02.71a
  672. The ``a'' means ``AM''. (If your DOS is classic, it will omit the 
  673. ``a''.)
  674.                                          If the time is 2.71 
  675. seconds after 1:45PM, the computer will say:
  676. Current time is  1:45:02.71p
  677. The ``p'' means ``PM''. (If your DOS is classic, it will omit the 
  678. ``p'', use a 24-hour clock, and say ``13:45:02.71''.)
  679.                                          To remember the time, 
  680. the computer uses its built-in digital clock. The computer will 
  681. say a wrong time if the clock's battery has run down or is 
  682. missing, or the clock's thinking has been interrupted by other 
  683. computer activities, or your town has switched to daylight 
  684. savings time, or you've taken the computer on an airplane to a 
  685. different time zone.
  686.                                          Confirming the time 
  687. After the computer says what it thinks the time is, it says:
  688. Enter new time:
  689.                                          If the computer's time 
  690. seems correct, press the ENTER key.
  691.                                          If you notice that the 
  692. computer's time is wrong, remind the computer of the correct 
  693. time. For example, if the correct time is exactly 1:45PM, type 
  694. ``1:45p'' (for modern DOS) or ``13:45'' (for classic DOS); then 
  695. press ENTER at the end of that time.
  696.            Directory (dir)
  697.   After the C prompt you can type ``dir'', like this:
  698. C:\>dir
  699. That ``dir'' command makes the computer show you a directory of 
  700. the files that are stored on the hard disk.
  701.   If you're using DOS 6.2, the directory looks like this:
  702. DOS          <DIR>         06-01-94   3:53a
  703. WINDOWS      <DIR>         06-02-94   3:10a
  704. WP           <DIR>         06-19-94   6:24p
  705. AMIPRO       <DIR>         06-15-94   3:37a
  706. QA           <DIR>         06-04-94   5:48p
  707. EXCEL        <DIR>         06-08-94  10:10p
  708. BACKUP       <DIR>         06-09-94   4:06p
  709. COMMAND  COM        54,619 09-30-93   6:20a
  710. CONFIG   SYS           182 06-28-94  11:12p
  711. AUTOEXEC BAT           166 06-29-94  12:39a
  712. DO       BAT            44 06-09-94  11:18p
  713. (On your computer, the directory might look slightly different, 
  714. depending on what your hard disk contains and which version of 
  715. DOS you're using For example, if your DOS is earlier than version 
  716. 6.2, it's too stupid to put commas in big numbers such as 
  717. 54,619.)
  718.   In that sample directory, one line says:
  719. COMMAND  COM        54,619 09-30-93   6:20a
  720. That line says the hard disk has a file whose name is 
  721. ``COMMAND.COM''; that file contains 54,619 bytes and was last 
  722. updated on September 30, 1993, at 6:20AM.
  723.   The next line says the disk also has a file named 
  724. ``CONFIG.SYS'', which contains 182 bytes and was last updated on 
  725. June 28, 1994 at 11:12PM. The lines underneath say that the disk 
  726. also has a file called ``AUTOEXEC.BAT'' and a file called 
  727. ``DO.BAT''.
  728.   Extensions Notice that a file's name (such as ``AUTOEXEC.BAT'') 
  729. consists of up to 8 characters (such as ``AUTOEXEC''), then a 
  730. period, then an extension of up to 3 characters (such as 
  731. ``BAT''). The period separates the main part of the filename from 
  732. the extension.
  733.   In the directory that the computer prints on your screen, each 
  734. line shows a file's name and extension but doesn't bother showing 
  735. the period.
  736.   The period is called a dot. So if you're chatting with another 
  737. computer expert about ``AUTOEXEC.BAT'', pronounce it ``AUTOEXEC 
  738. dot BAT''.
  739.                                          The computer can handle 
  740. many different types of files. Each type has a different 
  741. extension:
  742. Ext'n                                      What the file contains
  743. .BAT                                       a BATch of DOS 
  744. commands
  745. .COM                                       a short program that's 
  746. been COMpiled
  747. .EXE                                       a fancy program that 
  748. you can EXEcute
  749. .BAS                                       a program written by 
  750. using BASIC
  751. .PRG                                       a PRoGram written by 
  752. using DBASE or FOXPRO
  753. .SYS                                       list of hardware you 
  754. bought & how you want SYStem to operate
  755. .386                                       info that's useful 
  756. just if your CPU is a 386 (or 486 or Pentium)
  757. .TXT                                       TeXT that you can read
  758. .HLP                                       messages that HeLP you 
  759. learn how to use a program you bought
  760. .DOC                                       DOCument written by a 
  761. word processor such as Microsoft Word
  762. .OLD                                       an OLD, outdated 
  763. version, being kept just in case of emergency
  764. .BAK                                       a BAcKup version, 
  765. being kept just in case of emergency
  766. .DAT                                       DATa
  767. .TMP                                       TeMPorary data, which 
  768. the computer will use and then erase
  769. .INI                                       data to INItialize a 
  770. program, so the program starts properly
  771. .DBF                                       a DataBase File that 
  772. contains data used by DBASE or FOXPRO
  773. .DTF                                       a DaTabase File that 
  774. contains data used by Q&A
  775. .IDX                                       an InDeX to a database 
  776. file
  777. .XLS                                       an EXceL Spreadsheet, 
  778. created by using the Excel program
  779. .WK1                                       a WorKsheet created by 
  780. using the 1-2-3 spreadsheet program
  781. .WQ1                                       a Worksheet created by 
  782. using Quattro (which imitates 1-2-3)
  783.                                          Folders The sample 
  784. directory's top line says:
  785. DOS          <DIR>         06-01-94   3:53a
  786. That line says the hard disk has a file named ``DOS''. The <DIR> 
  787. means that the file is actually a directory folder that contains 
  788. other files! That folder was created on June 1, 1994 at 3:53AM; 
  789. many items have been put in that folder since then.
  790.                                          The next line says:
  791. WINDOWS      <DIR>         06-02-94   3:10a
  792. That means the hard disk has a folder named ``WINDOWS'', created 
  793. on June 2, 1994 at 3:10AM.
  794.                                          The lines underneath say 
  795. that the hard disk also has folders named ``WP'', ``AMIPRO'', 
  796. ``QA'', ``EXCEL'', and ``BACKUP''.
  797.                                          Summary statistics When 
  798. the computer finishes printing the directory, it prints summary 
  799. statistics:
  800.        11 file(s)         55,011 bytes
  801.                       21,426,176 bytes free
  802.                                          That means the directory 
  803. contains 11 files. (7 of them are folders, such as DOS and 
  804. WINDOWS. The other 4 are simple files, such as COMMAND.COM and 
  805. CONFIG.SYS.)
  806.                                          The simple files consume 
  807. 55,011 bytes altogether. The hard disk uses other bytes to store 
  808. the folders and any files that are in the folders.
  809.                                          (If your DOS is classic, 
  810. it doesn't bother to say ``55,011 bytes''.)
  811.                                          Besides the simple 
  812. files, folders, and files in folders, the hard disk also contains 
  813. these 6 special items: 2 hidden files (called ``IO.SYS'' and 
  814. ``MSDOS.SYS''), 2 copies of the file allocation table (FAT), the 
  815. boot record, and the directory itself.
  816.                                          The ``21,426,176 bytes 
  817. free'' means that over 21 million bytes on the hard disk are 
  818. still unused. (On your computer, the number of bytes free might 
  819. be different.)
  820.   Pausing When you type ``dir'', the computer tries to show you a 
  821. directory of the files that are stored on the hard disk. If your 
  822. hard disk has more files than can fit on the screen, the list of 
  823. files moves up the screen too quickly for you to read.
  824.   Here's how to see the directory more easily. . . . 
  825.   Instead of typing ``dir'', type ``dir /p'', like this:
  826. C:\>dir /p
  827. That means ``directory pausing''. When you give that command, the 
  828. computer starts printing the directory on the screen; but when 
  829. the screen becomes full, the computer pauses and says:
  830. Press any key to continue . . .
  831.   While the computer pauses, read the part of the directory 
  832. that's on the screen. When you finish reading that part, strike a 
  833. key (such as the ENTER key). Then the computer will print the 
  834. rest of the directory, pausing at the end of each screenful 
  835. (page).
  836.   So ``dir /p'' means ``directory, pausing at the end of each 
  837. page'' (or ``directory paged'').
  838.   Wide If you type ``dir /w'', you'll see a directory that's wide 
  839. and leaves out the details; the computer will print:
  840. [DOS]           [WINDOWS]       [WP]            [AMIPRO]        
  841. [QA]
  842. [EXCEL]         [BACKUP]        COMMAND.COM     CONFIG.SYS      
  843. AUTOEXEC.BAT
  844. DO.BAT
  845.   What's a switch? A switch is a comment that begins with a 
  846. slash. You've already learned about two switches: ``/p'' and 
  847. ``/w''.
  848.   To type the slash, make sure you press the forward slash key, 
  849. which says ``/'' on it. Do not press the key that says ``\'', 
  850. which is a backslash.
  851.   If you wish, you can put a blank space before the slash. The 
  852. blank space is optional. For example, you can say either ``dir 
  853. /p'' or ``dir/p''.
  854.   You can combine switches. For example, if you want the 
  855. directory to pause and also be wide, say ``dir /p/w''.
  856.   The computer doesn't care which switch you type first: typing 
  857. ``dir /p/w'' does the same thing as typing ``dir /w/p''.
  858.   Fancy switches (in modern DOS) If your DOS is classic, skip 
  859. ahead to the next section, entitled ``Attributes''. Modern DOS 
  860. understands these fancy switches. . . . 
  861.   Order. You can put the letter O after dir, like this: ``dir 
  862. /o''. That shows you the directory in alphabetical order: the 
  863. computer lists the folders from A to Z, then lists the other 
  864. files from A to Z, like this:
  865. AMIPRO       <DIR>         09-15-94   3:37a
  866. BACKUP       <DIR>         06-09-94   4:06p
  867. DOS          <DIR>         06-01-94   3:53a
  868. EXCEL        <DIR>         06-08-94  10:10p
  869. QA           <DIR>         06-04-94   5:48p
  870. WINDOWS      <DIR>         06-02-94   3:10a
  871. WP           <DIR>         06-19-94   6:24p
  872. AUTOEXEC BAT           166 06-29-94  12:39a
  873. COMMAND  COM        54,619 09-30-93   6:20a
  874. CONFIG   SYS           182 06-28-94  11:12p
  875. DO       BAT            44 06-09-94  11:18p
  876.   If you want to see the directory in chronological order (from 
  877. the oldest date to the newest date), say ``dir /od'' (which means 
  878. ``DIRrectory in Order of Date''). If you want to see the 
  879. directory in order of size, say ``dir /os''; that makes the 
  880. computer display the folders first, then display the other files 
  881. in order of size, from the smallest number of bytes to the 
  882. largest.
  883.   If you want to see the directory alphabetized by extension (so 
  884. that all the .BAT files come before the .COM files), say ``dir 
  885. /oe'' (which means ``DIRectory in Order of Extension''). Better 
  886. yet, say ``dir /oen'' (which means ``DIRectory in Order of 
  887. Extension and Name''), so that all the .BAT files come before the 
  888. .COM files, and all the .BAT files are in alphabetical order.
  889.   At the end of any of those commands, you can put ``/p'' to make 
  890. the computer pause at the end of each screenful.
  891.  
  892.   Lowercase. You can put the letter L after dir, like this: ``dir 
  893. /l''. That shows you the directory in lowercase letters instead 
  894. of capitals, so you see this:
  895. dos          <DIR>         06-01-94   3:53a
  896. windows      <DIR>         06-02-94   3:10a
  897. wp           <DIR>         06-19-94   6:24p
  898. amipro       <DIR>         06-15-94   3:37a
  899. qa           <DIR>         06-04-94   5:48p
  900. excel        <DIR>         06-08-94  10:10p
  901. backup       <DIR>         06-09-94   4:06p
  902. command  com        54,619 09-30-93   6:20a
  903. config   sys           182 06-28-94  11:12p
  904. autoexec bat           166 06-29-94  12:39a
  905. do       bat            44 06-09-94  11:18p
  906. That L switch was invented because most people can read lowercase 
  907. words faster than capitalized words.
  908.   Brief. You can say ``dir /b''. That makes the computer print 
  909. the directory briefly, without bothering to print each file's 
  910. length, time, and date, and without bothering to print summary 
  911. statistics. The computer will print just:
  912. DOS
  913. WINDOWS
  914. WP
  915. AMIPRO
  916. QA
  917. EXCEL
  918. BACKUP
  919. COMMAND.COM
  920. CONFIG.SYS
  921. AUTOEXEC.BAT
  922. DO.BAT
  923. The computer will print it very fast ___ instantly!
  924.   The computer doesn't understand ``dir /b/w''. If you say ``dir 
  925. /b/w'', the computer ignores the /w and does just ``dir /b''.
  926.   Attributes Some files have special qualities, called 
  927. attributes.
  928.   For example, your hard disk contains two special files, called 
  929. ``IO.SYS'' and ``MSDOS.SYS''. Those files contain the 
  930. fundamentals of DOS and must never be erased! To prevent you from 
  931. accidentally erasing them, the computer hides them from you, so 
  932. you don't even know they're there! When you say ``dir'', the 
  933. computer is sneaky and purposely avoids mentioning those two 
  934. files!
  935.   Modern DOS lets you peek at those two hidden files. Just say 
  936. ``dir /ah''. That makes the computer show a directory of files 
  937. having the Attribute of being Hidden. For example, if you say 
  938. ``dir /ah'' using DOS 6.2, the typical computer will say:
  939. IO       SYS        40,566 09-30-93   6:20a
  940. MSDOS    SYS        38,138 09-30-93   6:20a
  941.   Exception: if you're using PC-DOS instead of generic MS-DOS 
  942. (because your computer's built by IBM instead of being a generic 
  943. clone), those files are named ``IBMBIO.COM'' and ``IBMDOS.COM'' 
  944. instead.
  945.   Modern DOS lets you see the names of all your folders 
  946. (directories). Just say ``dir /ad''. That makes the computer show 
  947. a directory of all files having the Attribute of being 
  948. Directories. The computer will say:
  949. DOS          <DIR>         06-01-94   3:53a
  950. WINDOWS      <DIR>         06-02-94   3:10a
  951. WP           <DIR>         06-19-94   6:24p
  952. AMIPRO       <DIR>         06-15-94   3:37a
  953. QA           <DIR>         06-04-94   5:48p
  954. EXCEL        <DIR>         06-08-94  10:10p
  955. BACKUP       <DIR>         06-09-94   4:06p
  956.  
  957.                                          What's in a folder? To 
  958. find out what's in a folder, say ``dir'' then the folder's name. 
  959. For example, to find out what's in the DOS folder, say ``dir 
  960. dos'', like this:
  961. C:\>dir dos
  962.                                          You can put a switch at 
  963. the end of that command:
  964. C:\>dir dos /p
  965.                                          To find out what's in 
  966. the WINDOWS folder, say ``dir windows''. (That command works just 
  967. if you have a WINDOWS folder. If you do not have a WINDOWS 
  968. folder, the computer gripes by saying ``File not found''.)
  969.                                          Saying ``dir dos'' shows 
  970. you the files that are in the DOS folder. That list of files is 
  971. called the DOS directory. Saying ``dir windows'' shows you the 
  972. files that are in the Windows folder; that list of files is 
  973. called the Windows directory. Saying just ``dir'' shows you the 
  974. files that are not in folders; that list of files is called the 
  975. main directory (or root directory).
  976.                                          So to see the root 
  977. directory, just type ``dir'' after the standard C prompt, like 
  978. this:
  979. C:\>dir
  980. The other directories (such as the DOS directory and the Windows 
  981. directory) are called subdirectories.
  982.                                          Just one file To find 
  983. info about one file, say ``dir'' then the file's name. For 
  984. example, to find info about ``COMMAND.COM'', say ``dir 
  985. command.com''. The computer will print:
  986. COMMAND  COM        54,619 09-30-93   6:20a
  987.                                          Versions of COMMAND.COM 
  988. To tell which version of COMMAND.COM you have, use this chart:
  989. COMMAND.COM version                                      Size    
  990. Date                                                                   
  991. Time
  992. COMMAND.COM in MS-DOS 5                                    47,845 
  993. bytes                                                             
  994. 04-09-91                                                               
  995. 5:00a
  996. COMMAND.COM in MS-DOS 6                                    52,925 
  997. bytes                                                             
  998. 03-10-93                                                               
  999. 6:00a
  1000. COMMAND.COM in MS-DOS 6.20                                 54,619 
  1001. bytes                                                             
  1002. 09-30-93                                                               
  1003. 6:20a
  1004. COMMAND.COM in MS-DOS 6.21                                 54,619 
  1005. bytes                                                             
  1006. 02-13-94                                                               
  1007. 6:21a
  1008. COMMAND.COM in MS-DOS 6.22                                 54,645 
  1009. bytes                                                             
  1010. 05-31-94                                                               
  1011. 6:22a
  1012.                                          For those modern 
  1013. versions of MS-DOS, notice that the version number is the same as 
  1014. the time: MS-DOS 5 was invented at 5am, MS-DOS 6 was invented at 
  1015. 6am, and MS-DOS 6.20 was invented at 6:20am. So either Microsoft 
  1016. programmers do all their work early in the morning, or else 
  1017. Microsoft lies about the time.
  1018.                                          Most computerists 
  1019. believe that Microsoft lies about the time ___ not just the time 
  1020. when COMMAND.COM was invented, but also the time when future 
  1021. products will come out. As Microsoft programmers say, ``Time is 
  1022. reprogrammable.''
  1023.                                          What if your COMMAND.COM 
  1024. does not say 5am, 6am, 6:20am, 6:21am, or 6:22am, or your 
  1025. COMMAND.COM has a different date or size than listed in that 
  1026. chart? Then you're probably using an older version (such as 
  1027. version 4, which was timed at 12am), or an even newer version 
  1028. (such as 6.23 or 7), or a variant version (such as IBM PC-DOS), 
  1029. or a version that's been infected by a virus.
  1030.                                          Try this experiment: 
  1031. examine your DOS directory (by saying ``dir dos /p''). You'll 
  1032. notice that most of your DOS files have the same date and time as 
  1033. your COMMAND.COM.
  1034.   Wildcards The symbol ``*'' is called an asterisk or a star. To 
  1035. type it, tap the 8 key while holding down the SHIFT key.
  1036.   Try this experiment: type ``dir *.bat''. (That command is 
  1037. pronounced ``dir star dot bat''.) That makes the computer print 
  1038. an abridged directory, showing information about just the files 
  1039. whose names end in ``.bat''. The computer will print:
  1040. AUTOEXEC BAT           106 06-29-94  12:39a
  1041. DO       BAT            44 06-09-94  11:18p
  1042.   The symbol ``*'' means ``anything''. That's why saying ``dir 
  1043. *.bat'' makes the computer show a directory of anything that ends 
  1044. in ``.bat''.
  1045.   To see a directory of files whose names begin with d, say ``dir 
  1046. d*''. The computer will print:
  1047. DOS          <DIR>         06-01-94   3:53a
  1048. DO       BAT            44 06-09-94  11:18p
  1049.   A symbol (such as ``*'') that ``matches anything'' is called a 
  1050. wildcard.
  1051.   Different drives Your computer's main floppy drive is called 
  1052. drive A. If your computer has two floppy drives, the second 
  1053. floppy drive is called drive B. In most computers, drive A is on 
  1054. top of drive B or to the left of drive B.
  1055.   The main part of your computer's main hard drive is called 
  1056. drive C. If your computer has more than one hard drive, or its 
  1057. hard drive is partitioned into several parts, or you have a 
  1058. CD-ROM drive, or your computer is wired to other computers on a 
  1059. computer network, those additional disk surfaces are called drive 
  1060. D, drive E, drive F, etc.
  1061.   To practice using drive A, try this experiment. . . . 
  1062.   Step 1: find drive A. It's the main floppy drive. If your 
  1063. computer has two floppy drives, drive A is probably on top of 
  1064. drive B or to the left of drive B.
  1065.   Step 2: notice drive A's size. Take a ruler and measure the 
  1066. slot in drive A. If the slot is 5¼ inches long, drive A is called 
  1067. 5¼-inch. If the slot is 3½ inches long, drive A is called 
  1068. 3½-inch.
  1069.   Step 3: grab a floppy disk. Pick a disk that's the same size as 
  1070. drive A. (For example, if drive A is 5¼-inch, pick a disk that's 
  1071. 5¼-inch.) Pick a disk that contains information already. (For 
  1072. example, pick a floppy disk that contains DOS or Windows or Word 
  1073. Perfect or a game or some other program or data.)
  1074.   Step 4: put that disk into drive A. If the drive's slot is 
  1075. horizontal, make sure the disk's label is on top of the disk; if 
  1076. the slot is vertical, make sure the disk's label is on the disk's 
  1077. left side. If the disk is 5¼-inch, it has a big oval cutout; if 
  1078. the disk is 3½-inch, it has a chrome metal slider; make sure that 
  1079. cutout or slider goes into the drive before the label does.
  1080.   If the disk is 5¼-inch, close the drive's door. Here's how: if 
  1081. the slot is horizontal, pull the door latch down; if the slot is 
  1082. vertical, pull the door latch to the right.
  1083.   Step 5: type ``dir a:''. You can type ``dir a:'' after the 
  1084. standard C prompt, so your screen looks like this:
  1085. C:\>dir a:
  1086. To type the colon ``:'', make sure you hold down the SHIFT key.
  1087.   If you're lucky, the computer will print a directory that lists 
  1088. the files on drive A's disk.
  1089.   If you're unlucky, the computer will gripe by saying ``Not 
  1090. ready reading drive A'' or ``General failure reading drive A''. 
  1091. Then the computer will ask:
  1092. Abort, Retry, Fail?
  1093. To respond, choose Abort (by pressing the A key). Then the 
  1094. computer will say ``C:\>'' again. Try again to do the five steps
  1095. properly. (Make sure you don't insert the disk backwards or 
  1096. upside-down. If you're using a 5¼-inch disk, make sure you close 
  1097. the door. If you're still having trouble, try using a different 
  1098. floppy disk instead, or try using the other floppy drive.)
  1099.                                          Once you've mastered the 
  1100. art of typing ``dir a:'', be bold: experiment! For example, try 
  1101. typing switches (such as ``dir a: /p'') or wildcards (such as 
  1102. ``dir a:*.bat'' or ``dir a:w*''). Try putting other floppy disks 
  1103. into drive A, and find out what's on them (by typing ``dir a:'' 
  1104. again).
  1105.                                          If you have a drive B, 
  1106. put a floppy disk into it and find out what's on that disk by 
  1107. typing ``dir b:''.
  1108.  
  1109.                                            Change drive (a: or b: or c:)
  1110.                                            When the computer is 
  1111. waiting for you to type a DOS command, the computer normally 
  1112. prints this prompt:
  1113. C:\>
  1114. That's called the standard C prompt. It means the computer is 
  1115. thinking about drive C.
  1116.                                          A prompt Here's how to 
  1117. change the prompt, so the computer will think about drive A 
  1118. instead of drive C. In drive A put a floppy that contains info, 
  1119. then say ``a:'', so your screen looks like this:
  1120. C:\>a:
  1121. When you press ENTER at the end of that line, the computer 
  1122. changes the prompt to this:
  1123. A:\>
  1124. That's called the A prompt. It means that the computer is 
  1125. thinking about drive A.
  1126.                                          After the A prompt, try 
  1127. saying ``dir'', so your screen looks like this:
  1128. A:\>dir
  1129. Because of the A prompt, that ``dir'' makes the computer print a 
  1130. directory of drive A (instead of drive C).
  1131.                                          When you finish using 
  1132. the floppy in drive A and want to use the hard disk again, make 
  1133. the computer return to a standard C prompt. Here's how. After the 
  1134. A prompt, type ``c:'', so your screen looks like this:
  1135. A:\>c:
  1136. When you press ENTER at the end of that line, the computer will 
  1137. change the prompt back to this:
  1138. C:\>
  1139.                                          The drive the computer 
  1140. thinks about is called the current drive (or default drive). If 
  1141. the computer says ``C:\>'', the default drive is C; if the 
  1142. computer says ``A:\>'', the default drive is A.
  1143.                                          So to make A become the 
  1144. default drive, say ``a:'' (and press ENTER). To make C become the 
  1145. default drive again, say ``c:'' (and press ENTER).
  1146.                                          B prompt If you have a 
  1147. drive B, try this experiment: in drive B put a floppy that 
  1148. contains info, then say ``b:'' (and press ENTER). The computer 
  1149. changes the prompt to this:
  1150. B:\>
  1151. Then if you type ``dir'', the computer will print a directory of 
  1152. drive B. To return to a C prompt, type ``c:'' (and press ENTER).
  1153.   Change directory (cd)
  1154.   One of the folders on your hard disk is called DOS. To find out 
  1155. what's in that folder, you can say ``dir dos'' after the C 
  1156. prompt, like this:
  1157. C:\>dir dos
  1158.   Here's another way to find out what's in the DOS folder. Say 
  1159. ``cd dos''. (The ``cd'' means ``change directory''.) That makes 
  1160. the computer think about the DOS folder. The computer changes the 
  1161. prompt to this:
  1162. C:\DOS>
  1163. That means the computer is thinking about drive C's DOS folder. 
  1164. If you type ``dir'' after that prompt, the computer will print a 
  1165. directory of the files in drive C's DOS folder.
  1166.   When you finish using the DOS folder, you should return to the 
  1167. standard C prompt by saying ``cd \''. (Make sure you type a 
  1168. backslash \, not a forward slash /.) Then the computer will print 
  1169. a standard C prompt again:
  1170. C:\>
  1171.   Suppose your hard disk contains a WINDOWS folder. Here's how to 
  1172. explore what's in that folder. . . . 
  1173.   First, make sure the screen shows a standard C prompt: 
  1174. ``C:\>''. Then say ``cd windows''. That makes the computer think 
  1175. about the WINDOWS folder, so the computer changes the prompt to 
  1176. this:
  1177. C:\WINDOWS>
  1178.   To find out what's in that WINDOWS folder, say ``dir /p'', 
  1179. which makes the computer print a directory of the files in the 
  1180. WINDOWS folder.
  1181.   You get a surprise: one of the files in the WINDOWS folder is 
  1182. another folder, called SYSTEM. Yes, SYSTEM is a folder that's 
  1183. inside the WINDOWS folder.
  1184.   To find out what's in the SYSTEM folder, say ``cd system'' 
  1185. after the prompt, so your screen looks like this:
  1186. C:\WINDOWS>cd system
  1187. That makes the computer think about the SYSTEM folder inside the 
  1188. WINDOWS folder, so the computer changes the prompt to this:
  1189. C:\WINDOWS\SYSTEM>
  1190. Then if you say ``dir'', the computer will print a directory of 
  1191. the files in the WINDOWS SYSTEM folder.
  1192.                              Parents When a folder is inside 
  1193. another folder, the situation resembles a pregnant woman: the 
  1194. inner folder is called the child; the outer folder is called the 
  1195. mommy (or parent). For example, the SYSTEM folder is the child of 
  1196. the WINDOWS folder.
  1197.                              When you finish using the SYSTEM 
  1198. folder, you have a choice. If you say ``cd ..'', those two 
  1199. periods make computer return to the mommy folder (WINDOWS) and 
  1200. say:
  1201. C:\WINDOWS>
  1202. If instead you say ``cd \'', the backslash makes the computer 
  1203. return to the root directory and say:
  1204. C:\>
  1205.                              Saying ``cd ..'' is therefore called 
  1206. ``returning to mommy''. Saying ``cd \'' is called ``returning to 
  1207. your roots''. Whenever you feel lost and scared, return to mommy 
  1208. or your roots!
  1209.                              Pointer files Socrates warned, 
  1210. ``Know thyself.'' Freud warned, ``Be prepared to tell me about 
  1211. your mother.''
  1212.                              To obey their warnings, each folder 
  1213. contains a Socrates file and a Freud file. The Socrates file, 
  1214. called ``.'', reminds the folder of what files are in the folder. 
  1215. The Freud file, called ``..'', reminds the folder of who the 
  1216. folder's mother is, so the computer will know what to do when you 
  1217. type ``cd ..''.
  1218.                              That's why, when you're in the 
  1219. middle of a folder and say ``dir'', the first two files you see 
  1220. in the directory are called ``.'' and ``..''. They're called 
  1221. pointer files because they point to the folder's inner self and 
  1222. mommy.
  1223.                              Short cut Suppose the computer says:
  1224. C:\DOS>
  1225. That means the computer is thinking about the DOS folder. To make 
  1226. the computer think about the WINDOWS SYSTEM folder instead, you 
  1227. can use two methods.
  1228.                              The normal method is to say ``cd \'' 
  1229. (which makes the computer leave the DOS folder and return to the 
  1230. standard C prompt), then say ``cd windows'', then say ``cd 
  1231. system''.
  1232.                              The shorter method is to combine all 
  1233. those cd commands into this single command: ``cd 
  1234. \windows\system''. In that command, make sure you type the 
  1235. backslashes.
  1236.                              Backslash versus forward slash Don't 
  1237. confuse the backslash (\) with a forward slash (/).
  1238. Type a backslash (\) when you're discussing folders, such as ``cd 
  1239. \windows\system''.
  1240. Type a forward slash (/) when you're giving switches, such as 
  1241. ``dir /p'' or ``dir /w''.
  1242.  
  1243.  
  1244.           EXTERNAL COMMANDS
  1245.   So far, you've learned 7 major commands: ver, echo, cls, date, 
  1246. time, dir, and cd. How does the computer understand them?
  1247.   When you turn on the computer, the computer automatically runs 
  1248. a program called ``COMMAND.COM'', which teaches the computer how 
  1249. to react to those commands. Since the definitions of those 
  1250. commands are stored inside COMMAND.COM, those commands are called 
  1251. internal commands.
  1252.   Now you're going to learn 3 fancy commands whose definitions 
  1253. are too long to fit in COMMAND.COM. The 3 fancy commands are 
  1254. ``format'' (which puts a format onto a disk), ``diskcopy'' (which 
  1255. makes a copy of a disk), and ``chkdsk'' (which checks your disk). 
  1256. Don't type them until I fully explain how to use them.
  1257.   The definition of ``format'' is in a file called 
  1258. ``FORMAT.COM''. The definition of ``diskcopy'' is in a file 
  1259. called ``DISKCOPY.COM''. The definition of ``chkdsk'' is in a 
  1260. file that classic DOS calls ``CHKDSK.COM'' but modern DOS calls 
  1261. ``CHKDSK.EXE''.
  1262.   Since the definitions of ``format'', ``diskcopy'', and 
  1263. ``chkdsk'' lie outside of COMMAND.COM, those 3 commands are 
  1264. called external commands.
  1265.   When you give one of those external commands, the computer 
  1266. tries to obey the command by running the FORMAT.COM program, 
  1267. DISKCOPY.COM program, CHKDSK.COM program, or CHKDSK.EXE program.
  1268.   If your computer is set up normally, those programs are in 
  1269. drive C's DOS folder. In that case, if you say ___ 
  1270. C:\>dir dos /p
  1271. you'll see that the DOS directory includes FORMAT.COM, 
  1272. DISKCOPY.COM, and CHKDSK.EXE (or CHKDSK.COM).
  1273.   But alas, your computer might be set up abnormally. Those 
  1274. programs might be in the root directory instead of in a DOS 
  1275. subdirectory. Those programs might be in a subdirectory which, 
  1276. instead of being called ``DOS'', is called ``BIN'' or ``UTIL''. 
  1277. Those programs might be on a drive D instead of C. If your 
  1278. computer doesn't have a hard disk, those programs might be on one 
  1279. of the DOS floppy disks instead.
  1280.   Where are those programs in your computer? Find out now! Say 
  1281. ___ 
  1282. C:\>dir dos /p
  1283. If you see that the DOS directory includes FORMAT.COM, 
  1284. DISKCOPY.COM, and CHKDSK.EXE (or CHKDSK.COM), you're lucky. If 
  1285. you're unlucky, explore other directories (by saying `` dir /p'' 
  1286. or  ``dir bin /p'' or ``dir util /p'' or ``dir d: /p'' or ``dir 
  1287. a: /p''), until you find the directory that contains those 
  1288. external DOS programs.
  1289.                                                 Check disk (chkdsk)
  1290.                                          To check your computer's 
  1291. disk and RAM, type ``chkdsk''. Try it now!
  1292.                                          If your computer is set 
  1293. up properly, it has a feature called path to DOS, so you can type 
  1294. ``chkdsk'' after any prompt, so your screen looks like this ___ 
  1295. C:\>chkdsk
  1296. or like this ___ 
  1297. C:\DOS>chkdsk
  1298. or like this ___ 
  1299. C:\WINDOWS>chkdsk
  1300. or even like this ___ 
  1301. C:\WINDOWS\SYSTEM>chkdsk
  1302. Then the computer will print a message saying how many bytes are 
  1303. in your hard drive and your RAM.
  1304.                                          Example For example, 
  1305. when I say ``chkdsk'' on my computer, the computer prints this 
  1306. message:
  1307.   212,058,112 bytes total disk space
  1308.        81,920 bytes in 2 hidden files
  1309.       389,120 bytes in 85 directories
  1310.   190,115,840 bytes in 3,324 user files
  1311.        45,056 bytes in bad sectors
  1312.    21,426,176 bytes available on disk
  1313.  
  1314.         4,096 bytes in each allocation unit
  1315.        51,772 total allocation units on disk
  1316.         5,231 available allocation units on disk
  1317.  
  1318.       655,360 total bytes memory
  1319.       634,464 bytes free
  1320.                                          The top line says the 
  1321. hard disk is big enough to hold 212,058,112 bytes altogether. 
  1322. That's about 212 million bytes. Since a million bytes is about 
  1323. the same as a megabyte, that's about 200 megabytes.
  1324.                                          The next line says 
  1325. 81,920 bytes are in the 2 hidden files (IO.SYS and MSDOS.SYS).
  1326.                                          The next line says the 
  1327. disk contains 85 folders (subdirectories). For each folder, the 
  1328. computer must store the folder's name and a list of which files 
  1329. are in the folder. Altogether, those 85 folder names and 85 
  1330. folder lists consume 389,120 bytes.
  1331.                                          The disk contains 3,324 
  1332. user files. (Those are the files that aren't hidden and aren't 
  1333. names of folders.) Some of those files are in the root directory 
  1334. and can be seen when you type ``dir''; the rest of those files 
  1335. are buried in folders. Altogether, those 3,324 user files consume 
  1336. 190,115,840 bytes.
  1337.                                          It's difficult to 
  1338. manufacture a flawless hard disk. Most hard disks contain some 
  1339. unreliable areas, which are called bad sectors. According to the 
  1340. ``chkdsk'' command, my computer knows that 45,056 bytes on the 
  1341. hard disk's surface are in bad sectors. Since the computer knows 
  1342. that those sectors are bad, the computer won't put any data 
  1343. there, and those bad sectors won't do any harm.
  1344.                                          The typical hard drive 
  1345. contains fewer than 200,000 bytes in bad sectors. The typical 
  1346. floppy disk has no bad sectors at all.
  1347.                                          (If your hard disk 
  1348. contains more than 200,000 bytes in bad sectors, or the number of 
  1349. bytes in bad sectors increases rapidly each month, return the 
  1350. disk to your dealer for repair or replacement. If a floppy disk 
  1351. contains any bad sectors at all, buy a different floppy disk 
  1352. instead, since nearby sectors might be partly unreliable, and 
  1353. discount dealers sell new floppy disks for less than $1.)
  1354.                                          Although the top line 
  1355. says my hard disk is big enough to hold about 212 million bytes, 
  1356. the lines below show that most of those bytes are used for the 2 
  1357. hidden files, the 85 folders,
  1358. the 3,324 user files, and bad sectors. Just 21,426,176 bytes 
  1359. remain unused; they're available for any additional files we want 
  1360. to put on the disk.
  1361.   Each file consists of several clusters on the disk's surface. 
  1362. The next line says that each cluster (allocation unit) consists 
  1363. of 4,096 bytes (which is 4 kilobytes). The next lines say that 
  1364. altogether the disk holds 51,772 clusters, of which 5,231 remain 
  1365. unused.
  1366.   The bottom two lines discuss the RAM chips, not the hard disk. 
  1367. They say that the RAM chips contain 655,360 bytes (640 kilobytes) 
  1368. of conventional memory. Some of those bytes are used by DOS 
  1369. itself; 634,464 bytes remain unused; they're available for any 
  1370. program we wish to run.
  1371.   Actually, I bought more RAM chips ___ 4 megabytes altogether! 
  1372. But just 640K of them are used for conventional memory. The rest 
  1373. of them are used for extended and expanded memory, which the 
  1374. ``chkdsk'' command doesn't analyze.
  1375.   Even if you buy many megabytes of RAM, the largest RAM quantity 
  1376. that the ``chkdsk'' command will ever mention is 655,360 bytes, 
  1377. because 655,360 bytes is the largest size that conventional RAM 
  1378. can be.
  1379.   No hard disk? If you're using an early version of DOS and your 
  1380. computer doesn't have a hard disk, here's what to do. . . . 
  1381.   Grab the floppy disk that contains CHKDSK.COM. (If you're using 
  1382. DOS version 1, 2 or 3, grab the main DOS floppy disk. If you're 
  1383. using DOS version 4, grab Operating Disk 1.)
  1384.   Put that disk into drive A. After the A prompt, say ``chkdsk''.
  1385.   Bad command When you say ``chkdsk'', the computer might say:
  1386. Bad command or file name
  1387. That means the computer can't find the CHKDSK program. To solve 
  1388. that problem, examine your spelling: maybe you spelled ``chkdsk'' 
  1389. incorrectly?
  1390.   If you don't have a hard disk, maybe you inserted the wrong 
  1391. floppy disk?
  1392.   If you have a hard disk and spelled ``chkdsk'' correctly, maybe 
  1393. your computer is set up incorrectly. To handle such a computer, 
  1394. remind the computer that the ``chkdsk'' command is in the DOS 
  1395. subdirectory (by typing ``\dos\chkdsk'' instead of just 
  1396. ``chkdsk'').
  1397.   If you don't have a DOS subdirectory but instead have a 
  1398. subdirectory called BIN, try typing ``\bin\chkdsk''. If instead 
  1399. you have a subdirectory called UTIL, try typing ``\util\chkdsk''.
  1400.   Different drives If you say ``chkdsk'' after the C prompt, the 
  1401. computer will check the disk in drive C.
  1402.   To check the disk in drive A, say ``chkdsk a:''. To check disk 
  1403. B, say ``chkdsk b:''.
  1404.   Lost chains If you accidentally turn off the computer while the 
  1405. computer is in the middle of thinking about a file, the computer 
  1406. might get confused and forget the file's name and which folder 
  1407. the file belongs to. Such a file, whose identity has been lost, 
  1408. is called a lost chain.
  1409.   When you say ``chkdsk'', the computer checks whether your disk 
  1410. contains any lost chains. If the computer notices a lost chain, 
  1411. the computer will say ``errors'' and might ask:
  1412. Convert lost chains to files?
  1413. To reply, press the N key.
  1414.                                          Fix If you say 
  1415. ``chkdsk'' and the computer notices errors on your disk (such as 
  1416. lost chains), the computer tells you about the errors but doesn't 
  1417. fix them.
  1418.                                          To fix the errors, say 
  1419. ``chkdsk'' again but put ``/f'' at the end of the command, like 
  1420. this:
  1421. C:\>chkdsk /f
  1422. The ``/f'' makes the computer fix minor errors (such as lost 
  1423. chains).
  1424.                                          If you're using DOS 6.2, 
  1425. the computer says:
  1426. Instead of using CHKDSK /F, try using SCANDISK.
  1427. Do you still want to run CHKDSK /F (Y/N)?
  1428. To reply, press Y then ENTER.
  1429.                                          If the computer asks 
  1430. ``Convert lost chains to files?'' again, press the N key again. 
  1431. This time, the computer will get rid of the ``lost chains'' 
  1432. problem by erasing those chains.
  1433.                                          (Almost always, the 
  1434. chains contain fragments of old junk that you want erased. If you 
  1435. press Y instead of N, the computer will turn those chains into 
  1436. files instead of erasing them. The files will be named 
  1437. ``FILE0000.CHK'', ``FILE0001.CHK'', ``FILE0002.CHK'', etc.)
  1438.                                          If you want to check the 
  1439. disk in drive A and fix it, say ``chkdsk a: /f''.
  1440.  
  1441.                                                Format (in every DOS)
  1442.                                             & unformat (in modern DOS)
  1443.                                          Suppose you buy a blank 
  1444. floppy disk. Before you can use that disk, it must be formatted.
  1445.                                          You can buy disks that 
  1446. have been formatted. If your disk has not been formatted yet, you 
  1447. must format it yourself; here's how.
  1448.                                          Follow 9 steps To avoid 
  1449. difficulties when formatting, follow these 9 steps. . . . 
  1450.                                          Step 1: make sure the 
  1451. disk is blank and a virgin, never used before. Take the disk out 
  1452. of a new, unopened box of blank disks. Do not use a disk that 
  1453. already contains info!
  1454.                                          Step 2: make sure the 
  1455. disk is the same size as the drive you plan to put it in. If the 
  1456. drive's slot is 5¼ inches long, make sure the disk is 5¼-inch. If 
  1457. the drive's slot is 3½ inches long, make sure the disk is 
  1458. 3½-inch.
  1459.                                          Step 3: make sure the 
  1460. disk is the same density as the drive. If the drive is 
  1461. high-density, make sure the disk is high-density. If the drive is 
  1462. double-density, make sure the disk is double-density.
  1463.                                          To find out the density 
  1464. of the drive, ask your dealer (or read the ads and manuals that 
  1465. came with the computer). A 5¼-inch drive holds 360K if 
  1466. double-density, 1.2M if high-density. A 3½-inch drive holds 720K 
  1467. if double-density, 1.44M if high-density. In a typical 8088 
  1468. computer, the drives are double-density. In a typical 386, 486, 
  1469. or Pentium computer, the drives are high-density. In a typical 
  1470. 286 computer, drive A is high-density; drive B is either a 
  1471. double-density 5¼-inch or a high-density 3½-inch.
  1472.                                          To find out the density 
  1473. of the disk, read the disk's label and the box that the disk came 
  1474. in. ``HD'' means high-density; ``DD'' means double-density. The 
  1475. typical high-density 3½-inch disk has ``HD'' stamped on it and 
  1476. has square cutouts in two of the disk's corners (instead of just 
  1477. one corner). The typical double-density 5¼-inch disk is made of 
  1478. magnetic material that's brownish-gray (instead of charcoal gray) 
  1479. and has its central hole reinforced by a Mylar ring.
  1480.   Step 4: temporarily empty the drives. If you have a hard drive, 
  1481. remove any floppies from the floppy drives. If you do not have a 
  1482. hard drive, put into drive A the DOS disk containing FORMAT.COM.
  1483.   Step 5: get the standard prompt onto the screen. If you have a 
  1484. hard disk, make the computer say ``C:\>''. If you do not have a 
  1485. hard disk, make the computer say ``A:\>'' (or ``A>'').
  1486.   Step 6: say ``format a:'' or ``format b:'' (and press ENTER at 
  1487. the end of that line). If you're planning to put the blank disk 
  1488. into drive A, say ``format a:''. If you're planning to put the 
  1489. blank disk into drive B, say ``format b:''. Be sure to say 
  1490. ``format a:'' or ``format b:'' rather than just ``format''.
  1491.   Then if you're lucky, the computer will say:
  1492. Insert new diskette
  1493. and press ENTER when ready
  1494.   (If instead the computer says ``Bad command or file name'', 
  1495. remind the computer which folder FORMAT.COM is in. For example, 
  1496. if FORMAT.COM is in a folder called DOS, say ``\dos\format a:''; 
  1497. if FORMAT.COM is in a folder called BIN, say ``\bin\format a:''.)
  1498.   Step 7: put the blank disk into the drive. If you said ``format 
  1499. a:'', put the blank disk into drive A (after removing any disk 
  1500. that's already in drive A). If you said ``format b:'', put the 
  1501. blank disk into drive B.
  1502.   If the disk is 5¼-inch, close the drive's door.
  1503.   Step 8: press the ENTER key. If you're lucky, the computer will 
  1504. say ``Formatting''; then it will format the blank disk.
  1505.   The formatting takes about a minute. During that time, the 
  1506. computer divides the disk's surface into tracks and sectors, 
  1507. checks the disk's surface for flaws, and puts these 4 items onto 
  1508. the disk: the boot record, the directory, and 2 copies of the 
  1509. file allocation table (FAT). When the formatting is finished, the 
  1510. computer will say ``Format complete''.
  1511.   (If the computer gripes, try again to do those eight steps 
  1512. correctly!)
  1513.   Step 9: answer questions. If you're using modern DOS or DOS 4, 
  1514. the computer will ask:
  1515. Volume label (11 characters, ENTER for none)?
  1516. Then you can invent a name for the disk. Keep the name short: no 
  1517. more than 11 characters. Type the name, then press the ENTER key. 
  1518. (If you're too lazy to invent a name, press ENTER without typing 
  1519. a name.) Then in the future, whenever you ask the computer to 
  1520. print the disk's directory, the computer will automatically print 
  1521. the disk's name at the top of the directory.
  1522.   At the end of the whole formatting procedure, the computer will 
  1523. ask:
  1524. Format another (Y/N)?
  1525. If you want to format another blank disk, press the Y key (which 
  1526. means ``Yes''); otherwise, press the N key (which means ``No''). 
  1527. Then press ENTER.
  1528.                                          Mistakes When giving the 
  1529. format command, what happens if you make a mistake?
  1530.                                          Make sure the disk 
  1531. you're formatting was blank. If it wasn't blank, the computer 
  1532. will automatically make it blank, by destroying the information 
  1533. on it!
  1534.                                          Make sure you say which 
  1535. drive to format. To format the disk in drive A, say ``format 
  1536. a:''. To format the disk in drive B, say ``format b:''.
  1537.                                          If you forget to say 
  1538. ``a:'' or ``b:'' after the word ``format'', the computer gets 
  1539. nasty. Modern DOS and DOS 4 make the computer print this gripe:
  1540. Required parameter missing
  1541. DOS 3.2 & 3.3 make the computer print this gripe instead:
  1542. Drive letter must be specified
  1543. If you're using an even older version of DOS, the computer won't 
  1544. gripe. Instead, it will format whatever disk is in the default 
  1545. drive, which might not be the drive you intended! For example, if 
  1546. the default drive is C, the computer will format drive C's hard 
  1547. disk, and so it will erase the information on your hard disk!
  1548.                                          Format the whole box If 
  1549. you buy a box of unformatted blank disks, format all the disks in 
  1550. the box immediately. Avoid giving the format command again ___ 
  1551. until you buy your next box of unformatted blank disks.
  1552.                                          Unformat (in modern DOS) 
  1553. Suppose you accidentally format a disk that contained some 
  1554. important files. When the formatting is done, the files seem to 
  1555. be gone.
  1556.                                          But if you're using 
  1557. modern DOS, you can get the files back! Just tell the computer to 
  1558. unformat the disk. For example, to unformat the disk in drive A, 
  1559. say ``unformat a:''. The computer will say, ``Press ENTER when 
  1560. ready.'' Press ENTER. The computer will ask, ``Are you sure?'' 
  1561. Press Y. Then the computer will unformat the disk. Afterwards, if 
  1562. you say ``dir a:'', you'll see that the files are still there!
  1563.                                          Unconditional format 
  1564. (modern DOS) Modern DOS lets you say ``/u'' at the end of the 
  1565. format command, like this: ``format a: /u''. That formats the 
  1566. disk faster, so you don't have to wait long for the formatting to 
  1567. finish. The ``/u'' also reduces the chance that the computer will 
  1568. gripe at you. When I want modern DOS to format a disk, I usually 
  1569. say ``/u''.
  1570.                                          The only disadvantage of 
  1571. saying ``format a: /u'' is that the disk cannot be unformatted. 
  1572. The ``/u'' tells the computer to format unconditionally and not 
  1573. waste time worrying about the possibility that you might change 
  1574. your mind and want to unformat. Saying ``/u'' means you're 
  1575. confident and demand quick results.
  1576.                                          Quick format (in modern 
  1577. DOS) Suppose a disk in drive A has been formatted and contains 
  1578. files, but you no longer need those files. To erase all the files 
  1579. on the disk, you can just reformat the disk by again saying 
  1580. ``format a:''.
  1581.                                          Unfortunately, saying 
  1582. ``format a:'' makes you wait about a minute, while the computer 
  1583. erases the files and divides the disk's surface into tracks and 
  1584. sectors again.
  1585.                                          Modern DOS lets you 
  1586. reformat faster by saying ``format a: /q/u''. The ``/q'' tells 
  1587. the computer to reformat quickly, by erasing the files but not 
  1588. bothering to redivide the disk's surface into tracks and sectors; 
  1589. the computer will reuse the tracks and sectors. The ``/u'' tells 
  1590. the computer to reformat unconditionally, without preparing for 
  1591. the possibility of an unformat. The computer accomplishes 
  1592. ``format a: /q/u'' in just a few seconds.
  1593.   Double-density format (DOS 3 & up) Suppose you buy a 
  1594. double-density disk and want to format it. The most reliable way 
  1595. to format it is to use a double-density drive.
  1596.   But suppose you don't have any double-density drives. Try a 
  1597. trick: stick the double-density disk into a high-density drive, 
  1598. and give one of the trick format commands listed below.
  1599.   These tricks work well if the disk is 3½-inch. If the disk is 
  1600. 5¼-inch, these tricks are less reliable, but you're welcome to 
  1601. try them anyway.
  1602.   Here are the tricks for trying to format a double-density disk 
  1603. in high-density drive A. . . . 
  1604.   Modern DOS and DOS 4 let you do this:
  1605. If the disk is 3½-inch, say ``format a: /f:720'', which means 
  1606. format for 720K.
  1607. If the disk is 5¼-inch, say ``format a: /f:360'', which means 
  1608. format for 360K.
  1609.   To make modern DOS finish the format faster and with less 
  1610. chance of the computer griping, put ``/u'' at the end of the 
  1611. command:
  1612. If the disk is 3½-inch, say ``format a: /f:720 /u''.
  1613. If the disk is 5¼-inch, say ``format a: /f:360 /u''.
  1614.   DOS 3.3 doesn't understand ``/f:''. Do this instead:
  1615. If disk is 3½-inch, say ``format a: /n:9''. The ``/n:9'' means 9 
  1616. sectors per track.
  1617. If disk is 5¼-inch, say ``format a: /4''. The ``/4'' means 40 
  1618. tracks.
  1619.   Those are the commands to format a double-density disk in a 
  1620. high-density drive.
  1621.   DOS 3, 3.1, and 3.2 can't handle high-density 3½-inch drives 
  1622. but use the same command as DOS 3.3 for handling high-density 
  1623. 5¼-inch drives. DOS 1, 1.1, 2, and 2.1 can't handle high-density 
  1624. drives at all.
  1625.  
  1626.               Diskcopy
  1627.   To copy a floppy disk, give the ``diskcopy'' command. It copies 
  1628. info from one floppy disk (called the source) to a blank floppy 
  1629. (called the target). It copies the entire disk, so that at the 
  1630. end of the process the target disk will become an exact clone of 
  1631. the source disk.
  1632.   Follow 7 steps To avoid difficulties when copying disks, follow 
  1633. these 7 steps. . . . 
  1634.   Step 1: choose a source disk. Decide which disk you want to 
  1635. copy. It must be a floppy disk, since the ``diskcopy'' command 
  1636. copies just floppy disks, not hard disks.
  1637.   Step 2: choose a target disk. It should be blank and a virgin, 
  1638. never used before. It must be the same type of disk as the source 
  1639. disk: specifically, it must be floppy, and it must be the same 
  1640. size and density as the source disk. For example, if the source 
  1641. disk is 5¼-inch, the target disk must be 5¼-inch (not 3½-inch); 
  1642. if the source disk is double-density, the target disk must be 
  1643. double-density (not high-density).
  1644.   Step 3: temporarily empty the drives. If you have a hard drive, 
  1645. remove any floppies from the drives. If you do not have a hard 
  1646. drive, put into drive A the DOS disk containing DISKCOPY.COM.
  1647.   Step 4: get the standard prompt onto the screen. If you have a 
  1648. hard disk, make the computer say ``C:\>''. If you do not have a 
  1649. hard disk, make the computer say ``A:\>'' (or ``A>'').
  1650.   Step 5: say ``diskcopy a: b:'' or ``diskcopy a: a:'' or 
  1651. ``diskcopy b: b:'' (and press ENTER at end of that line). If the 
  1652. source disk can be read by both drive A and drive B, say 
  1653. ``diskcopy a: b:''. If the source disk can be read by drive A but 
  1654. not by drive B, say ``diskcopy a: a:''. If the source disk can be 
  1655. read by drive B but not by drive A, say ``diskcopy b: b:''.
  1656.                                          Confused? Use this 
  1657. chart:
  1658. Source disk                                      Drive ADrive 
  1659. BWhat to type
  1660. 1.44M                                            1.44M 1.44M 
  1661. diskcopy a: b:
  1662. 1.44M                                            1.44M not 
  1663. 1.44Mdiskcopy a: a:
  1664. 1.44M                                            not 
  1665. 1.44M1.44Mdiskcopy b: b:
  1666.  
  1667. 1.2M                                             1.2M  1.2M  
  1668. diskcopy a: b:
  1669. 1.2M                                             1.2M  not 
  1670. 1.2Mdiskcopy a: b:
  1671. 1.2M                                             not 
  1672. 1.2M1.2Mdiskcopy a: b:
  1673.  
  1674. 360K                                             
  1675. 5¼-inch5¼-inchdiskcopy a: b:
  1676. 360K                                             5¼-inchnot 
  1677. 5¼-inch                                                      
  1678. diskcopy a: a:
  1679. 360K                                             not 
  1680. 5¼-inch5¼-inch                                               
  1681. diskcopy b: b:
  1682.  
  1683. 720K                                             
  1684. 3½-inch3½-inchdiskcopy a: b:
  1685. 720K                                             3½-inchnot 
  1686. 3½-inch                                                      
  1687. diskcopy a: a:
  1688. 720K                                             not 
  1689. 3½-inch3½-inch                                               
  1690. diskcopy b: b:
  1691.                                          Then if you're lucky, 
  1692. the computer will say, ``Insert SOURCE disk''.
  1693.                                          (If instead the computer 
  1694. says ``Bad command or file name'', remind the computer which 
  1695. folder DISKCOPY.COM is in. For example, if DISKCOPY.COM is in a 
  1696. folder called DOS, give a command such as ``\dos\diskcopy a: 
  1697. b:''.)
  1698.                                          Step 6: insert the 
  1699. appropriate disks and press ENTER. Here are the details. . . . 
  1700. What you said                                    What to do now
  1701. diskcopy a: b:                                   Put the source 
  1702. disk into drive A.
  1703.                                                  Put the target 
  1704. disk into drive B.
  1705.                                                  Press ENTER.
  1706.                                                  Wait until the 
  1707. computer asks ``Copy another''?
  1708.  
  1709. diskcopy a: a:                                   Put the source 
  1710. disk into drive A.
  1711.                                                  Press ENTER.
  1712.                                                  When computer 
  1713. says so, put target disk in drive A.
  1714.                                                  Press ENTER.
  1715.                                                  When computer 
  1716. says so, put source disk into drive A.
  1717.                                                  Press ENTER.
  1718.                                                  Continue 
  1719. swapping the source and target disks,
  1720.                                                  until the 
  1721. computer asks ``Copy another''?
  1722.  
  1723. diskcopy b: b:                                   Put the source 
  1724. disk into drive B.
  1725.                                                  Press ENTER.
  1726.                                                  When computer 
  1727. says so, put target disk into drive B.
  1728.                                                  Press ENTER.
  1729.                                                  When computer 
  1730. says so, put source disk into drive B.
  1731.                                                  Press ENTER.
  1732.                                                  Continue 
  1733. swapping the source and target disks,
  1734.                                                  until the 
  1735. computer asks ``Copy another''?
  1736.                                          During this step, the 
  1737. computer copies info from the source disk to the RAM chips, and 
  1738. then from the RAM chips to the target disk. If the target disk 
  1739. wasn't formatted previously, the computer formats it 
  1740. automatically while doing this step.
  1741.                                          Step 7: press Y or N. If 
  1742. you want to copy another disk, press the Y key (which means 
  1743. ``Yes''); otherwise, press the N key (which means ``No'').
  1744.                                          Copy DOS When you buy a 
  1745. new computer, the first thing you should do is copy the main DOS 
  1746. disk, by saying ``diskcopy a: b:'' (or ``diskcopy a: a:''). Then 
  1747. use the copy. Store the original disk in a safe place ___ so that 
  1748. if the copy ever gets accidentally damaged, you can go back to 
  1749. the original.
  1750.                                          You should also copy the 
  1751. other DOS disks and any other important software you bought.
  1752.                                          Copy protection Although 
  1753. the ``diskcopy'' command usually works, sometimes it doesn't! The 
  1754. computer might refuse to copy a disk!
  1755.                                          That happens if the 
  1756. disk's programs were written by programmers who fear you'll give 
  1757. copies of the disk to all your friends without paying royalties. 
  1758. Those programmers alter the disk, to prevent ``diskcopy'' from 
  1759. working.
  1760.                                          A disk altered to 
  1761. prevent the ``diskcopy'' command from working is said to be a 
  1762. copy-protected disk.
  1763.  
  1764.            EDIT YOUR DISKS
  1765.   Here's how to edit the info on your disks. I'll assume you have 
  1766. a hard drive.
  1767.   (If you don't have a hard drive, put a formatted floppy disk in 
  1768. drive B and use that instead of drive C. If you don't have a hard 
  1769. drive and don't have a drive B, use drive A ___ or better yet, 
  1770. practice these commands on somebody else's computer!)
  1771.  
  1772.          Make directory (md)
  1773.   Let's create a new folder on your hard disk.
  1774.   First, get a standard C prompt, so your screen looks like this:
  1775. C:\>
  1776.   Then invent a name for your folder. The name can be up to 8 
  1777. characters long, such as SARAH or TONY or JUNK or POETRY or 
  1778. FIDDLING. Type ``md'' then the name.
  1779.   For example, to Make a Directory called SARAH, say ``md sarah'' 
  1780. after the C prompt, like this:
  1781. C:\>md sarah
  1782. At the end of that line, press the ENTER key. The computer will 
  1783. pause briefly, while it creates a SARAH directory. (If the 
  1784. computer says ``Directory already exists'' or ``Unable to create 
  1785. directory'', your disk already contained something called SARAH, 
  1786. and you must pick a different name instead.)
  1787.   Then the computer will say ``C:\>'' again, so you can give 
  1788. another DOS command.
  1789.   To prove that the SARAH directory was created, say ``dir 
  1790. sarah''. The computer will show that SARAH contains two files: 
  1791. Socrates (.) and Freud (..).
  1792.   Go ahead! Create a folder named SARAH and other folders!
  1793.   Cd Suppose you've created a SARAH folder. If you wish, you can 
  1794. go into the SARAH folder by saying ``cd sarah'', which means 
  1795. ``Change Directory to SARAH''. That makes the computer say:
  1796. C:\SARAH>
  1797. Then if you say ``dir'', the computer will show you the SARAH 
  1798. directory's two files. To return to the root directory, say ``cd 
  1799. \''.
  1800.  
  1801.                 Copy
  1802.   The Jewish religion prohibits Orthodox Jews from eating ham. 
  1803. That's why Mary had a little lamb:
  1804. Mary had a little lamb,
  1805. 'Cause Jewish girls can't eat no ham.
  1806. If Mary were a Hindu now,
  1807. Mary couldn't eat no cow.
  1808. Religions all are fine and dandy,
  1809. Even my dentist's, which says "No candy!"
  1810. But Ma's religion makes me shiver.
  1811. That's why mine says "Ma, no liver!"
  1812.   Copy from console Here's how to put that poem onto your hard 
  1813. disk and call it MARY.
  1814.   First, type ``copy con mary'' after the C prompt, like this:
  1815. C:\>copy con mary
  1816.   (If your hard disk already contains a file named MARY, DOS 6.2 
  1817. makes the computer ask, ``Overwrite MARY?'' To reply, press the Y 
  1818. key then ENTER.)
  1819.   Underneath that typing, type the poem. (If you don't like that 
  1820. poem, make up your own! If you're a slow typist, make up a poem 
  1821. that's shorter to type, or type just the first two lines.)
  1822.                                          Underneath your poem, 
  1823. press the F6 key and then the ENTER key. The computer will 
  1824. automatically copy your poem onto the hard disk and call it MARY.
  1825.                                          To prove that your 
  1826. computer put the poem onto the disk, look at the hard disk's 
  1827. directory, by typing ``dir /p''. You'll see that one of the files 
  1828. in the directory is MARY.
  1829.                                          Your computer's console 
  1830. consists of the keyboard and screen. Saying ``copy con mary'' 
  1831. tells the computer that you want to copy from the console 
  1832. (keyboard and screen) to a disk file named MARY.
  1833.                                          Copy to console Suppose 
  1834. your disk contains a file called MARY. To find out what's in 
  1835. MARY, say ``copy mary con''. That makes the computer copy MARY 
  1836. from the disk to your console's screen. For example, if MARY was 
  1837. a poem, the poem will appear on your screen.
  1838.                                          Filenames You can give a 
  1839. file any short name you wish, such as MARY or LAMBCHOP. Keep the 
  1840. filename short: you can't make it longer than 8 characters.
  1841.                                          At the end of the 
  1842. filename, you can put a period and a 3-character extension.
  1843.                                          For example, you can 
  1844. name a file ``LAMBCHOP.YUM''. In that example, the ``LAMBCHOP'' 
  1845. is called the filename; the ``YUM'' is called the extension.
  1846.                                          Copy to floppy After 
  1847. you've created a file named MARY on your hard disk, you can copy 
  1848. MARY to a floppy disk. Here's how.
  1849.                                          If drive A contains a 
  1850. formatted floppy disk, you can copy MARY to drive A's disk by 
  1851. saying ``copy mary a:''. Try it!
  1852.                                          (If the computer gripes 
  1853. by saying ``Write protect error'', your floppy disk is a special 
  1854. kind that can't be written on. To reply, press the A key, which 
  1855. means ``Abort'', then try using a different floppy disk instead.)
  1856.                                          To prove that MARY's 
  1857. been copied to drive A, make the computer print the directory of 
  1858. drive A, by saying ``dir a:''.
  1859.                                          To copy MARY from the 
  1860. hard drive to drive B, say ``copy mary b:''.
  1861.                                          Suppose you've put MARY 
  1862. on a floppy disk in drive A and want to copy MARY from that 
  1863. floppy disk to a disk in drive B. Make the computer say ``A:\>'', 
  1864. then say ``copy mary b:''.
  1865.                                          Suppose MARY's on a 
  1866. floppy disk in drive A and you want to copy MARY to another 
  1867. floppy disk, but you don't have a drive B. Even though you don't 
  1868. have a drive B, you can say ``copy mary b:''. The computer will 
  1869. pretend your single floppy drive is both A and B; the computer 
  1870. will tell you when to remove disk A from the drive and insert 
  1871. disk B instead.
  1872.                                          Copy to folder Suppose 
  1873. MARY is on a floppy disk in drive A, and your hard disk contains 
  1874. a folder called SARAH. Here's how to copy MARY to the SARAH 
  1875. folder. At the standard C prompt, say ``copy a:mary sarah'', so 
  1876. your screen looks like this:
  1877. C:\>copy a:mary sarah
  1878. That tells the computer to copy drive A's MARY to the SARAH 
  1879. folder. (When giving that command, do not put a space after the 
  1880. ``a:''.)
  1881.                                          Here's another way to 
  1882. copy drive A's MARY file to the hard disk's SARAH folder. First, 
  1883. get into the SARAH folder by saying ``cd sarah''. That makes the 
  1884. computer say:
  1885. C:\SARAH>
  1886. Then tell the computer to copy drive A's MARY by saying ``copy 
  1887. a:mary'', so your screen looks like this:
  1888. C:\SARAH>copy a:mary
  1889. (When giving that command, do not put a space after the ``a:''.)
  1890.   Many ways to copy Here's a list of the many ways to copy a 
  1891. file.
  1892. Goal                            What to say
  1893. copy from the keyboard to a hard-disk file called MARYC:\>copy 
  1894. con mary
  1895. copy MARY from the hard disk to your screenC:\>copy mary con
  1896.  
  1897. copy MARY from the hard disk to drive AC:\>copy mary a:
  1898. copy MARY from the hard disk to drive BC:\>copy mary b:
  1899.  
  1900. copy MARY from drive A to drive BA:\>copy mary b:
  1901.  
  1902. copy MARY from drive A (to the hard disk)C:\>copy a:mary
  1903.  
  1904. copy MARY from drive A to the hard disk's SARAH folderC:\>copy 
  1905. a:mary sarah                                    or 
  1906. sayC:\SARAH>copy a:mary
  1907. copy everything from drive A to the hard disk's SARAH 
  1908. folderC:\>copy a:*.* sarah                      or 
  1909. sayC:\SARAH>copy a:*.*
  1910.  
  1911. copy everything from the SARAH folder to drive AC:\>copy sarah 
  1912. a:or say                                            C:\SARAH>copy 
  1913. *.* a:
  1914. copy MARY from the SARAH folder to drive AC:\>copy sarah\mary 
  1915. a:or say                                            C:\SARAH>copy 
  1916. mary a:
  1917.  
  1918. copy everything from the SARAH folder to the TONY folderC:\>copy 
  1919. sarah tony                                      or 
  1920. sayC:\SARAH>copy *.* \tony
  1921. copy MARY from the SARAH folder to the TONY folderC:\>copy 
  1922. sarah\mary tony                                 or 
  1923. sayC:\SARAH>copy mary \tony
  1924.  
  1925. make a copy of MARY, but call the copy ``SUE''C:\>copy mary sue
  1926.   Copy entire floppy to another floppy Suppose drive A's floppy 
  1927. disk contains important info, and you want to copy all that info 
  1928. to another disk.
  1929.   If possible, use the ``diskcopy'' command, by saying ``diskcopy 
  1930. a: b:'' or ``diskcopy a: a:''. That makes an exact copy of the 
  1931. entire disk. Unfortunately, the ``diskcopy'' command can't handle 
  1932. hard disks, and it requires that the target disk be exactly the 
  1933. same size and density as the source disk.
  1934.   An alternative way to copy all files from drive A to drive B is 
  1935. to say:
  1936. A:\>copy *.* b:
  1937. That tells the computer to copy files from drive A to drive B. 
  1938. But that ``copy'' command does not copy the hidden files (IO.SYS 
  1939. and MSDOS.SYS), does not copy folders, and does not copy any 
  1940. files buried in folders. It copies just the visible simple files 
  1941. listed in the root directory. And before giving that ``copy'' 
  1942. command you must make sure drive B's disk has been formatted.
  1943.   Copy entire floppy to the hard disk To copy all files from 
  1944. drive A to the hard disk, you can use several methods.
  1945.   One method is to make a hard-disk folder, such as SARAH, by 
  1946. saying:
  1947. C:\>md sarah
  1948. Then copy files from drive A to that folder by saying:
  1949. C:\>copy a:*.* sarah
  1950. That copies just the simple files that are visible in drive A's 
  1951. root directory.
  1952.   When giving that command, make sure you mention a hard-disk 
  1953. folder such as SARAH. Do not just say ``copy a:*.*'' without 
  1954. mentioning SARAH. If you make the mistake of saying just ``copy 
  1955. a:*.*'', the computer will copy drive A's files to your hard 
  1956. directory's root directory, where they'll destroy any hard disk 
  1957. files that have similar names.
  1958.   For example, if drive A contains a file called ``AUTOEXEC.BAT'' 
  1959. and you make the mistake of saying ``copy a:*.*'', that file will 
  1960. be copied to your hard disk's root directory and destroy the 
  1961. AUTOEXEC.BAT file that was on your hard disk previously. Then 
  1962. your hard disk won't work properly, and you'll phone me with 
  1963. tears in your eyes about how you wrecked your hard disk. People 
  1964. from all over the world phone me with that problem every week.
  1965.   Spare me the agony: remember to never say just ``copy a:*.*''. 
  1966. Instead, always mention a folder, such as ``copy a:*.* sarah''.
  1967.   When you buy a program, you usually get an instruction manual 
  1968. and a set of floppy disks. Read the instruction manual ___ 
  1969. especially the part entitled ``Getting started'' or 
  1970. ``Installation''. It tells you the programmer's opinion of the 
  1971. best way to copy the floppy disks onto your hard disk.
  1972.   Instead of having you create a folder such as SARAH and then 
  1973. having you say ``copy a:*.* sarah'', the instruction manual 
  1974. usually tells you to put the first floppy disk into drive A and 
  1975. then type ``a:install'' or ``a:setup''. When you type that 
  1976. command, the computer starts running a program called 
  1977. ``INSTALL.EXE'' or ``SETUP.EXE'' on the first floppy disk. That 
  1978. program automatically creates a folder on your hard disk and 
  1979. copies files to that folder from the floppy disk. Then the 
  1980. program makes the computer tell you to insert the other floppy 
  1981. disks, and the program automatically copies files from those 
  1982. disks to your hard disk's folder.
  1983.   During that process, the program asks you questions about what 
  1984. kind of computer equipment you bought and what your desires are. 
  1985. The program copies
  1986. just the files that are relevant to your needs and desires; it 
  1987. also edits those files to meet your needs more closely.
  1988.  
  1989.                                                              Type
  1990.                                                      Suppose 
  1991. you've put on your hard disk a file called MARY containing a 
  1992. poem. To see the poem on your screen, you can tell the computer 
  1993. to copy MARY to the console's screen, by saying ``copy mary 
  1994. con''. An even easier way to copy MARY to the screen is to say 
  1995. just ``type mary''.
  1996.                                                      Experiment! 
  1997. See what's in your hard disk's ``AUTOEXEC.BAT'' file by saying 
  1998. ``type autoexec.bat'', like this:
  1999. C:\>type autoexec.bat
  2000. See what's in your hard disk's ``CONFIG.SYS'' file by saying:
  2001. C:\>type config.sys
  2002.                                                      Which files 
  2003. are ASCII MARY, AUTOEXEC.BAT, and CONFIG.SYS all contain words 
  2004. and numbers that you can read on the screen. Other files are 
  2005. weirder. For example, if you say ``type command.com'', you'll see 
  2006. strange symbols instead of words and numbers.
  2007.                                                      Files such 
  2008. as MARY, AUTOEXEC.BAT, and CONFIG.SYS, which all contain words 
  2009. and numbers you can read, are called ASCII files (pronounced 
  2010. ``ass key files''). The COMMAND.COM file contains special symbols 
  2011. and is therefore not an ASCII file.
  2012.                                                      If somebody 
  2013. says, ``Give me an ASCII file'', that person wants to be given a 
  2014. floppy disk that contains an ASCII file, which is a file that the 
  2015. person can read by giving the ``type'' command.
  2016.                                                      Files that 
  2017. end in .BAT are always ASCII files. Files ending in .COM and .EXE 
  2018. are never ASCII files. Files ending in .TXT are usually ASCII 
  2019. files.
  2020.                                                      Congratulati
  2021. ons! You've learned all the essentials of DOS! If you're in a 
  2022. rush, you may skip ahead to other chapters. If you keep reading 
  2023. here, you'll become a DOS expert!
  2024.             Rename (ren)
  2025.   Suppose a file is named MARY. To change that file's name to 
  2026. LAMBCHOP, say ``rename mary lambchop''.
  2027.   Before giving that command, make sure the computer has given 
  2028. you the right prompt. For example, if MARY is on drive A, change 
  2029. the name to LAMBCHOP by saying:
  2030. A:\>rename mary lambchop
  2031. If MARY is in the hard drive's SARAH folder, change the name MARY 
  2032. to LAMBCHOP by saying:
  2033. C:\SARAH>rename mary lambchop
  2034.   Instead of typing the word ``rename'', you can type just 
  2035. ``ren'', like this: ``ren mary lambchop''.
  2036.   By saying ``rename'' (or ``ren''), you can rename a simple file 
  2037. (such as MARY), but you cannot rename a folder. For example, if 
  2038. you have a folder named SARAH, you cannot change SARAH to TONY by 
  2039. saying ``rename''.
  2040.  
  2041.             Delete (del)
  2042.   Suppose a file is named MARY. To delete that file from the 
  2043. disk, say ``del mary''.
  2044.   Before giving that command, make sure the computer has given 
  2045. you the right prompt. For example, if MARY is on drive A, delete 
  2046. MARY by saying:
  2047. A:\>del mary
  2048. If MARY is in the hard drive's SARAH folder, delete MARY by 
  2049. saying:
  2050. C:\SARAH>del mary
  2051.   Delete all files To delete all files from the SARAH folder, 
  2052. say:
  2053. C:\>del sarah
  2054.   The computer will ask, ``Are you sure?'' To reply, press the Y 
  2055. key (which means Yes) and then ENTER.
  2056.    Then the computer will delete all files from the SARAH folder 
  2057. ___ except for Socrates (.), Freud (..), any hidden files, and 
  2058. any folders that are inside the SARAH folder.
  2059.   To delete all files from drive A, say:
  2060. A:\>del *.*
  2061. When the computer asks ``Are you sure?'', press Y then ENTER. 
  2062. Then the computer will delete all files from drive A ___ except 
  2063. for hidden files and folders.
  2064.  
  2065.         Move (in DOS 6 & 6.2)
  2066.   DOS 6 & 6.2 let you say ``move''. The word ``move'' serves two 
  2067. purposes. . . . 
  2068.   Purpose 1: move a file For example, suppose MARY is a file on 
  2069. the hard disk, and you want to move MARY to drive A. Just say:
  2070. C:\>move mary a:
  2071. That copies MARY from the hard disk to drive A and then deletes 
  2072. MARY from the hard disk.
  2073.   Saying ``move mary a:'' has the same effect as saying ``copy 
  2074. mary a:'' and then ``del mary''. So ``move'' means ``make a copy 
  2075. and then destroy the original''.
  2076.   Purpose 2: rename a folder If SARAH is a folder and you want to 
  2077. change its name to TONY, say ``move sarah tony'', like this:
  2078. C:\>move sarah tony
  2079.  
  2080.                                                Remove directory (rd)
  2081.                                          Suppose your hard disk 
  2082. contains a folder named SARAH. Here's how to remove that folder 
  2083. from the hard disk.
  2084.                                          First, delete all files 
  2085. from the SARAH folder by saying:
  2086. C:\>del sarah
  2087. When the computer asks ``Are you sure?'', press the Y key and 
  2088. then ENTER.
  2089.                                          Now the SARAH folder 
  2090. should be empty. Finally, get rid of the SARAH folder itself, by 
  2091. saying Remove the Directory SARAH:
  2092. C:\>rd sarah
  2093.                                          If you're lucky, the 
  2094. computer will respond by saying just:
  2095. C:\>
  2096. That means the SARAH folder has been removed. If you're unlucky, 
  2097. the computer will gripe by saying:
  2098. Invalid path, not directory,
  2099. or directory not empty
  2100. C:\>
  2101. That means the SARAH folder can't be removed yet, because the 
  2102. SARAH folder isn't empty yet: it contains other folders or hidden 
  2103. files. Get rid of the folders inside it, then try again to say 
  2104. ``rd sarah''.
  2105.  
  2106.                                              Deltree (in DOS 6 & 6.2)
  2107.                                          If you want to delete a 
  2108. folder named SARAH, DOS 6 & 6.2 permit this shortcut: just say 
  2109. ``deltree sarah'', like this. . . . 
  2110. C:\>deltree sarah
  2111. The computer will ask whether you're sure; press Y then ENTER. 
  2112. Then the computer will delete all the files in the SARAH folder, 
  2113. delete any folders in the SARAH folder, and remove the SARAH 
  2114. folder itself. So the computer automatically does ``del sarah'' 
  2115. and ``rd sarah'' and does the same for any folders in SARAH.
  2116.                                          Saying ``deltree sarah'' 
  2117. is nifty, because it automatically makes the computer perform a 
  2118. series of ``del'' and ``rd'' commands for you.
  2119.                                          The ``deltree sarah'' 
  2120. means ``delete the tree of SARAH''. It makes the computer delete 
  2121. the SARAH folder and also any files or folders that have been 
  2122. sprouting in SARAH.
  2123.  
  2124.                                                Edit (in modern DOS)
  2125.                                          To edit a file easily, 
  2126. give the ``edit'' command. To give that command, you must buy 
  2127. modern DOS.
  2128.                                          (If you're using a 
  2129. classic DOS instead, skip ahead to the next section, which 
  2130. explains how to give the ``edlin'' command instead.)
  2131.                                          Before giving the 
  2132. ``edit'' command, decide which file you want to edit. (For 
  2133. example, suppose you want to edit a file you created called 
  2134. ``MARY''.)
  2135.                                          Make the computer give 
  2136. you the correct prompt. (For example, if MARY is in your hard 
  2137. disk's root directory, make the computer say ``C:\>''. If MARY is 
  2138. in your hard disk's SARAH folder, make the computer say 
  2139. ``C:\SARAH>''. If MARY is in drive B, make the computer say 
  2140. ``B:\>''.)
  2141.                                          After that prompt, say 
  2142. ``edit mary''.
  2143.                                          If you're lucky, the 
  2144. screen's bottom line will say ``MS-DOS Editor'', the screen's top 
  2145. line will say ``File'', and the screen's second line will say 
  2146. ``MARY''. (If instead the computer gripes, make sure your DOS 
  2147. folder contains EDIT.COM, EDIT.HLP, and QBASIC.EXE.)
  2148.   In the middle of the screen, you'll see all of MARY's lines:
  2149. Mary had a little lamb,
  2150. 'Cause Jewish girls can't eat no ham.
  2151. If Mary were a Hindu now,
  2152. Mary couldn't eat no cow.
  2153. Religions all are fine and dandy,
  2154. Even my dentist's, which says "No candy!"
  2155. But Ma's religion makes me shiver.
  2156. That's why mine says "Ma, no liver!"
  2157.   NUM LOCK key In your keyboard's upper-right corner, you might 
  2158. see a light marked ``Num Lock''. If that light is glowing, turn 
  2159. it off by pressing the NUM LOCK key underneath it.
  2160.   Cursor On your screen, the first character (the M) is 
  2161. underlined. The underline blinks. That blinking underline is 
  2162. called the cursor.
  2163.   To move that cursor to the right, press the key that has a 
  2164. right-arrow on it. You can move the cursor in all four 
  2165. directions, by pressing the right-arrow, left-arrow, down-arrow, 
  2166. and up-arrow keys. Each of those keys automatically repeats: so 
  2167. to move the cursor to the right several characters, just keep 
  2168. your finger on the right-arrow key a while.
  2169.   (If pressing the arrow keys makes you see numbers instead of a 
  2170. moving cursor, press the NUM LOCK key.)
  2171.   To move the cursor all the way left, to the line's beginning, 
  2172. press the HOME key. To move the cursor far right, to the line's 
  2173. end, just past the line's last word, press the END key.
  2174.   Insert Here's how to insert extra characters anywhere in your 
  2175. document. Move the cursor to where you want the extra characters 
  2176. to begin. Then type the characters you want to insert. To make 
  2177. room for characters you're inserting, other characters on that 
  2178. line will automatically move to the right.
  2179.   To insert an extra line in your document, move the cursor to 
  2180. where you want the extra line to begin. Then, while holding down 
  2181. the Ctrl key, tap the N key (which means ``New line''). You'll 
  2182. see a blank line.
  2183.   Delete To delete the character you just typed, press the 
  2184. BACKSPACE key (which is above the ENTER key and has a left-arrow 
  2185. on it).
  2186.   To delete a character you typed long ago, move the cursor to 
  2187. that character, then press the DELETE key (which says ``Delete'' 
  2188. or ``Del'' on it). To delete a passage typed long ago, move the 
  2189. cursor to the passage's beginning, then tap the DELETE key 
  2190. several times (or hold down the DELETE key a while), until the 
  2191. passage disappears.
  2192.   To delete an entire line, move the cursor to that line. Then, 
  2193. while holding down the Ctrl key, tap the Y key (which means 
  2194. ``Yank the line''). The line will disappear.
  2195.   Exit When you finish editing the file, tap 4 keys:
  2196. Tap the Alt key (which means ``Menu'').
  2197. Tap the F key (which means ``File'').
  2198. Tap the X key (which means ``eXit'').
  2199. Tap the ENTER key (which means ``Yes'').
  2200.   That makes the computer exit from the editor. You see a DOS 
  2201. prompt (such as ``C:\>''), so you can give another DOS command.
  2202.   Make a big boo-boo? If you make a big mistake and wish you 
  2203. hadn't tried to edit MARY, tap 4 keys:
  2204. Tap the Alt key (which means ``Menu'').
  2205. Tap the F key (which means ``File'').
  2206. Tap the X key (which means ``eXit'').
  2207. Tap the N key (which means ``No'').
  2208.   That makes the computer ignore all the editing you've
  2209. done, so that MARY returns to its original state. MARY returns to 
  2210. the state it was in before you started using the editor.
  2211.                                          You see a DOS prompt 
  2212. (such as ``C:\>''), so you can give another DOS command.
  2213.  
  2214.                                            Edlin (in early DOS versions)
  2215.                                          If your DOS is classic, 
  2216. edit a file by giving the ``edlin'' command. (If your DOS is 
  2217. modern, don't bother reading this; skip ahead to the next topic, 
  2218. ``Batch Files''.)
  2219.                                          Here's how to give the 
  2220. ``edlin'' command.
  2221.                                          First, decide which file 
  2222. you want to edit. (For example, suppose you want to edit a file 
  2223. you created called ``MARY''.)
  2224.                                          Next, make the computer 
  2225. give you the correct prompt. (For example, if MARY is in your 
  2226. hard disk's root directory, make the computer say ``C:\>''. If 
  2227. MARY is in your hard disk's SARAH folder, make the computer say 
  2228. ``C:\SARAH>''. If MARY is in drive B, make the computer say 
  2229. ``B:\>''.)
  2230.                                          After that prompt, say 
  2231. ``edlin mary''.
  2232.                                          If you're lucky, the 
  2233. computer will say:
  2234. End of input file
  2235. (If instead the computer says ``Bad command or file name'', your 
  2236. computer is set up incorrectly and can't find the EDLIN.COM 
  2237. program. In that case, remind the computer where the EDLIN.COM 
  2238. program is. For example, if the EDLIN.COM program is in your hard 
  2239. disk's DOS folder, say ``c:\dos\edlin mary''. If the EDLIN.COM 
  2240. program is in drive A, say ``a:edlin mary''.)
  2241.                                          Then the computer will 
  2242. print an asterisk:
  2243. *
  2244. After the asterisk, you can type any edlin command.
  2245.                                          List For your first 
  2246. edlin command, type ``lL'' after the asterisk, so your screen 
  2247. looks like this:
  2248. *1L
  2249. That makes the computer print a List of MARY's lines, starting at 
  2250. line 1. The computer automatically numbers the lines, so you see 
  2251. this:
  2252.         1:*Mary had a little lamb,
  2253.         2: 'Cause Jewish girls can't eat no ham.
  2254.         3: If Mary were a Hindu now,
  2255.         4: Mary couldn't eat no cow.
  2256.         5: Religions all are fine and dandy,
  2257.         6: Even my dentist's, which says "No candy!"
  2258.         7: But Ma's religion makes me shiver.
  2259.         8: That's why mine says "Ma, no liver!"
  2260.                                          Underneath, the computer 
  2261. prints another asterisk, so you can give another edlin command.
  2262.                                          Edit If you want to edit 
  2263. line 5, type ``5'' (and then press ENTER).
  2264.                                          The computer will print 
  2265. a copy of line 5, so you see this:
  2266.         5:*Religions all are fine and dandy,
  2267. Underneath, retype that line however you want it. For example, 
  2268. try typing ``Religions can be wonderful and fancy,''. To save 
  2269. time, instead of retyping the word ``Religions'' (which is 
  2270. unchanged), just press the right-arrow key 9 times (since 
  2271. ``Religions'' has 9 characters).
  2272.                                          When you finish retyping 
  2273. the line, press ENTER at the end of it.
  2274.                                          Delete If you want to 
  2275. Delete line 6, type ``6D'' after the asterisk. That makes the 
  2276. computer delete line 6 and renumber all the lines that came 
  2277. underneath it.
  2278.                                          Then look at the new 
  2279. version of MARY, by typing ``1L'' again.
  2280.   Insert Here's how to insert extra lines and make them become 
  2281. lines 3 and 4, so that the old lines 3 and 4 become 5 and 6.
  2282.   Type ``3I'' after the asterisk. The computer will say:
  2283.         3:*
  2284. Then type whatever words you want to be in the new line 3.
  2285.   When you press the ENTER key at the end of that line, the 
  2286. computer will say:
  2287.         4:*
  2288. Then type whatever words you want to be in the new line 4.
  2289.   When you press the ENTER key at the end of that line, the 
  2290. computer will say:
  2291.         5:*
  2292. If you don't want to type a new line 5, say Cancel, by tapping 
  2293. the C key while holding down the Ctrl key.
  2294.   Then look at the new version of MARY, by typing 1L again.
  2295.   Exit When you finish editing MARY, type ``E'' after the 
  2296. asterisk. That makes the computer End the editing and Exit from 
  2297. edlin. You see a DOS prompt (such as ``C:\>''), so you can give 
  2298. another DOS command.
  2299.   When exiting from edlin, the computer puts two versions of MARY 
  2300. onto the disk. The new, edited version is named ``MARY''. The 
  2301. previous version is on the disk also, but its name has been 
  2302. changed to ``MARY.BAK''.
  2303.   Make a big boo-boo? If you make a big mistake and wish you 
  2304. hadn't tried to edit MARY, type ``Q'' after the asterisk. That 
  2305. tells the computer to Quit.
  2306.   The computer asks ``Abort edit?'' Press Y and then ENTER.
  2307.   That makes the computer ignore all the editing you've done, so 
  2308. that MARY returns to its original state. MARY returns to the 
  2309. state it was in before you started using edlin.
  2310.   You see a DOS prompt (such as ``C:\>''), so you can give 
  2311. another DOS command.
  2312.   Optional capitals When giving an edlin command, you do not have 
  2313. to capitalize. For example, to delete line 6 you can type ``6d'' 
  2314. instead of ``6D''.
  2315.  
  2316.              BATCH FILES
  2317.                                          You can invent your own 
  2318. command and make it stand for a list of other commands.
  2319.                                          For example, let's 
  2320. invent a command called ``status'' that makes the computer 
  2321. display a wide directory and also remind you of which DOS version 
  2322. you're using. To invent that ``status'' command, just create a 
  2323. file called ``STATUS.BAT'', which contains two lines, ``dir /w'' 
  2324. and ``ver''.
  2325.                                          To create that 
  2326. STATUS.BAT file, type this ___ 
  2327. C:\>copy con status.bat
  2328. dir /w
  2329. ver
  2330. then press the F6 key and then the ENTER key.
  2331.                                          Afterwards, whenever you 
  2332. type the word ``status'', like this ___ 
  2333. C:\>status
  2334. the computer will look at the file ``STATUS.BAT'' and obey the 
  2335. commands you stored there: the computer will automatically do 
  2336. ``dir /w'' and then ``ver''.
  2337.                                          A file that's a list of 
  2338. commands is called a batch file. The file ``STATUS.BAT'' is a 
  2339. batch file, because it's a list of two commands (``dir /w'' and 
  2340. ``ver''). The name of every batch file must end in ``.BAT'', 
  2341. which stands for ``batch''.
  2342.  
  2343.                                                      Echo off
  2344.                                          While the computer 
  2345. performs a batch file, the computer prints little messages 
  2346. reminding you of what it's doing. For example, while the computer 
  2347. performs the ``ver'' command in ``STATUS.BAT'', the computer 
  2348. prints the word ``ver'' on your screen. Each such message is 
  2349. called an echo.
  2350.                                          If you don't want to see 
  2351. such messages, say ``echo off'' at the beginning of your batch 
  2352. file, like this:
  2353. A>copy con status.bat
  2354. echo off
  2355. dir /w
  2356. ver
  2357.  
  2358.                                                 Clear screen (cls)
  2359.                                          Another command you can 
  2360. put at the beginning of your batch file is ``cls''. That makes 
  2361. the computer begin by erasing the screen, so you don't see any 
  2362. distractions.
  2363.                                          Put ``cls'' just under 
  2364. ``echo off'', so that the computer even erases the words ``echo 
  2365. off'' from the screen. Here's what the batch file looks like now:
  2366. C:\>copy con status.bat
  2367. echo off
  2368. cls
  2369. dir /w
  2370. ver
  2371.  
  2372.                                                        Echo
  2373.                                          Let's define ``chick'', 
  2374. so that if you say ___ 
  2375. C:\>chick
  2376. the computer will recite this chicken riddle:
  2377. Why did the chicken cross the road?
  2378. To escape from Colonel Sanders!
  2379.                                          To define ``chick'', 
  2380. type this ___ 
  2381. C:\>copy con chick.bat
  2382. echo off
  2383. cls
  2384. echo Why did the chicken cross the road?
  2385. echo To escape from Colonel Sanders!
  2386. then press F6 and ENTER.
  2387.  
  2388.      Replaceable parameter (%1)
  2389.   You can define ``greet'', so that if you say ___ 
  2390. C:\>greet Peter
  2391. the computer will say:
  2392. What will Peter do today?
  2393. Will Peter work, or will Peter play?
  2394. Peter needs a holiday.
  2395. Welcome, Peter! Hip, hip, hooray!
  2396.   If you say ___ 
  2397. C:\>greet Suzie
  2398. the computer will say:
  2399. What will Suzie do today?
  2400. Will Suzie work, or will Suzie play?
  2401. Suzie needs a holiday.
  2402. Welcome, Suzie! Hip, hip, hooray!
  2403.   If you say ___ 
  2404. C:\>greet Godzilla
  2405. the computer will say:
  2406. What will Godzilla do today?
  2407. Will Godzilla work, or will Godzilla play?
  2408. Godzilla needs a holiday.
  2409. Welcome, Godzilla! Hip, hip, hooray!
  2410.   To define ``greet'', type this ___ 
  2411. C:\>copy con greet.bat
  2412. echo off
  2413. cls
  2414. echo What will %1 do today?
  2415. echo Will %1 work, or will %1 play?
  2416. echo %1 needs a holiday.
  2417. echo Welcome, %1! Hip, hip, hooray!
  2418. then press F6 and ENTER. Make sure you type the ``%1'' in that 
  2419. batch file.
  2420.   Afterwards, when you say ``greet Peter'' or ``greet Suzie'' or 
  2421. ``greet Godzilla'', the computer will print a greeting to Peter 
  2422. or Suzie or Godzilla, by automatically substituting the person's 
  2423. name for ``%1''. Try it!
  2424.  
  2425.      @Echo off (in DOS 3.3 & up)
  2426.   So far, you've learned two sophisticated ways to begin a batch 
  2427. file.
  2428.   One way is to begin by saying:
  2429. echo off
  2430. That prevents the computer from printing echo messages. 
  2431. Unfortunately, that method still leaves the words ``echo off'' on 
  2432. your screen.
  2433.   The second way is to begin by saying:
  2434. echo off
  2435. cls
  2436. That flashes the words ``echo off'' on your screen, then 
  2437. immediately erases those words (because ``cls'' erases the 
  2438. screen). Unfortunately, ``cls'' erases all previous commands from 
  2439. the screen also; that prevents you from browsing at the screen to 
  2440. see what you had done previously.
  2441.   The most sophisticated way to begin a batch file is to begin by 
  2442. saying:
  2443. @echo off
  2444. without saying ``cls''. (To type the symbol ``@'', tap the 2 key 
  2445. while holding down the SHIFT key.) The symbol ``@'' prevents the 
  2446. words ``echo off'' from appearing on your screen but still lets 
  2447. you see all previous screen activity.
  2448.   The ``@echo off'' command is understood just by DOS 3.3, DOS 4, 
  2449. and modern DOS.
  2450.  
  2451.                 BOOT
  2452.                                          When you turn the 
  2453. computer on, it goes through a procedure called booting. Here's 
  2454. what the computer does while it's booting.
  2455.  
  2456.                                                        POST
  2457.                                          First, the computer 
  2458. plays doctor and gives itself a checkup, to make sure all its 
  2459. innards are working okay. That's called the power-on self test 
  2460. (POST).
  2461.                                          Code numbers If the IBM 
  2462. PC detects an illness, it prints a code number telling you where 
  2463. the illness is:
  2464. Code number                                      Which part of 
  2465. the computer is ill
  2466.                                             0    main power 
  2467. supply (or other fundamentals)
  2468.                                             1    motherboard (or 
  2469. the battery for the date & time)
  2470.                                             2    RAM chips
  2471.                                             3    keyboard
  2472.                                             4    monochrome 
  2473. monitor (or its video card)
  2474.                                             5    CGA color 
  2475. monitor (or its video card)
  2476.                                             6    floppy disk (or 
  2477. its drive or controller)
  2478.                                             7    math coprocessor 
  2479. chip (8087 or 80287 chip)
  2480.                                             9    LPT1 parallel 
  2481. port (to attach the printer to)
  2482.                                            11    COM1 serial port 
  2483. (to attach a modem or mouse)
  2484.                                            12    COM2 serial port 
  2485. (to attach a modem or mouse)
  2486.                                            13    joystick (or 
  2487. other device attached to game port)
  2488.                                            14    printer
  2489.                                            17    hard disk (or 
  2490. its drive or controller)
  2491.                                            24    EGA color 
  2492. monitor (or its video card)
  2493.                                          After printing the code 
  2494. number, it prints a two-digit number, which is usually 01. For 
  2495. example, the computer usually prints 301 if the keyboard is 
  2496. broken (or not plugged into the system unit, or plugged in 
  2497. loosely, or has an XT-AT switch in the wrong position). The 
  2498. computer usually prints 1701 if the hard disk is broken (or the 
  2499. hard disk's controller is broken or the hard disk's cable to the 
  2500. controller is loose).
  2501.                                          Although the IBM PC 
  2502. prints those code numbers, modern clones print English words 
  2503. instead. For example, if a modern clone detects that the keyboard 
  2504. is broken, the clone says ``Keyboard error'' or ``Keyboard 
  2505. failure'' or ``No scancode from keyboard'' or some similar 
  2506. message.
  2507.                                          Experiment! Turn off 
  2508. your computer, unplug its keyboard, turn the computer back on, 
  2509. and see how your computer gripes! (Then turn the computer off 
  2510. again, and plug the keyboard back in.)
  2511.                                          RAM test To test the RAM 
  2512. chips, the computer puts data into them, then reads the chips to 
  2513. see if the data remains.
  2514.                                          During that process, the 
  2515. typical computer will tell you how much RAM you have. For 
  2516. example, if you have 640K of RAM, the screen will show the 
  2517. computer counting up to 640K.
  2518.                                          If your computer is 
  2519. old-fashioned, you'll see it count up to 640K twice. The first 
  2520. time it counts to 640K, it puts data into the RAM chips; the 
  2521. second time it counts to 640K, it reads the chips to see whether 
  2522. the data's still there. For that kind of computer, if you trust 
  2523. the RAM chips and don't want to wait for the computer to test 
  2524. them, press the SPACE bar in the middle of the test. That 
  2525. interrupts the RAM test and makes the computer move on to the 
  2526. next activity.
  2527.                                          During the RAM test, the 
  2528. original IBM PC shows no numbers on the screen at all. That 
  2529. computer leaves you in the dark until the RAM test is done.
  2530.   Beeps At the end of the entire POST testing, the computer gives 
  2531. a short beep, which tells you the testing's done.
  2532.   If you ever hear a long beep, or a series of several beeps, the 
  2533. computer's trying to send you an alarm. Look at the messages on 
  2534. the screen for details! If you hear the alarm but don't see any 
  2535. messages on the screen, the cause is usually a faulty electrical 
  2536. current: the power cord (that goes from the computer to the wall) 
  2537. is loose, or your town's electric company isn't generating enough 
  2538. volts, or an appliance in your building (such as an electric 
  2539. heater or refrigerator) is stealing too much electricity, or the 
  2540. power supply inside your computer is bad, or your motherboard is 
  2541. very defective.
  2542.   If you hear the short beep that means the POST test is done, 
  2543. and you don't hear any alarms, but your screen is totally dark, 
  2544. the problem is probably just your screen. Make sure the screen is 
  2545. turned on (so its power light glows); make sure the screen's 
  2546. contrast and brightness knobs are turned up; make sure the cable 
  2547. that runs from the screen to the computer is plugged in tight; 
  2548. and make sure one of your colleagues didn't attach the wrong 
  2549. screen to the wrong computer!
  2550.  
  2551.              Boot drive
  2552.   After finishing the power-on self test, the computer decides 
  2553. which disk drive will be the boot drive.
  2554.   To decide, the computer begins by checking whether drive A 
  2555. contains a formatted disk. If it does contain a formatted disk, 
  2556. it becomes the boot drive (so that later the computer will 
  2557. eventually print ``A>'' or ``A:\>'' on your screen).
  2558.   If drive A does not contain a formatted disk (or the drive's 
  2559. door is accidentally open), the computer looks for drive C. If 
  2560. the computer finds drive C (because you bought a hard disk and 
  2561. formatted the main part of it), drive C becomes the boot drive 
  2562. (so that later the computer will eventually print ``C>'' or 
  2563. ``C:\>'' on your screen).
  2564.   If drive A doesn't contain a formatted disk but you don't have 
  2565. a drive C either, here's what happens. If your computer's built 
  2566. by IBM, the computer prints ``IBM Personal Computer BASIC'' on 
  2567. your screen and lets you write programs in BASIC. If your 
  2568. computer's a clone instead, it waits for you to insert a 
  2569. formatted disk into drive A.
  2570.  
  2571.          Hidden system files
  2572.   Next, the computer searches in the boot drive's root directory 
  2573. for two hidden system files.
  2574.   MS-DOS calls them ``IO.SYS'' and ``MSDOS.SYS''. PC-DOS calls 
  2575. them ``IBMIO.COM'' and ``IBMDOS.COM''.
  2576.   No system files? If the computer doesn't find the hidden system 
  2577. files, the computer gripes:
  2578. Non-System disk or disk error
  2579. Replace and press any key to continue
  2580. To reply, put in drive A a disk containing those files (or make 
  2581. drive A be empty and hope that drive C contains those files). 
  2582. Then press ENTER. Again the computer will choose a boot drive and 
  2583. search for hidden system files.
  2584.  
  2585.              CONFIG.SYS
  2586.   Next, the computer looks in the boot drive's root directory for 
  2587. a file called ``CONFIG.SYS''. If the computer finds the file, it 
  2588. obeys the instructions in that file; those instructions teach the 
  2589. computer how to manage hardware intelligently ___ how to 
  2590. CONFIGure your SYStem. If the computer does not find CONFIG.SYS, 
  2591. the computer does not gripe; instead, the computer just manages 
  2592. hardware stupidly.
  2593.                                          Does your computer have 
  2594. a hard disk? If so, does drive C's root directory contain 
  2595. CONFIG.SYS? To find out, say:
  2596. C:\>type config.sys
  2597.                                          If you're lucky, that 
  2598. command will make the screen show you what's in the CONFIG.SYS 
  2599. file. (If you're unlucky, the computer will just reply, ``File 
  2600. not found'', which means the computer can't find a CONFIG.SYS 
  2601. file.)
  2602.                                          On my fanciest computer, 
  2603. when I say ___ 
  2604. C:\>type config.sys
  2605. the screen shows me these 9 equations:
  2606. device=dos\himem.sys /testmem:off
  2607. device=dos\emm386.exe ram d=48
  2608. dos=high,umb
  2609. stacks=0,0
  2610. buffers=40
  2611. files=50
  2612. devicehigh=dos\ansi.sys
  2613. devicehigh=dos\setver.exe
  2614. devicehigh=mtmcdas.sys /d:mscd000 /p:320
  2615. But on your computer, different equations might be better! Here 
  2616. are the details. . . . 
  2617.                                          HIMEM.SYS (in modern 
  2618. DOS) The top equation (device=dos\himem.sys /testmem:off) makes 
  2619. the computer run the HIMEM.SYS program, which is in the DOS 
  2620. folder. That program teaches the computer how to manage extended 
  2621. RAM, which is RAM beyond the first 640K.
  2622.                                          For example, suppose 
  2623. your computer has 8 megabytes of RAM altogether. Without that 
  2624. equation, your computer would handle just 640K of RAM and waste 
  2625. the rest of the 8 megabytes!
  2626.                                          A program (such as 
  2627. HIMEM.SYS) that teaches the computer how to manage extra hardware 
  2628. is called a device driver. To put a device driver into 
  2629. CONFIG.SYS, begin the equation by saying ``device=''.
  2630.                                          When you boot the 
  2631. computer, the POST makes the computer check your RAM chips to 
  2632. make sure they're reliable. The DOS 6.2 version of HIMEM.SYS 
  2633. wastes time by checking the RAM chips again, unless you say 
  2634. ``/testmem:off'', which tells DOS 6.2 to skip the recheck. Say 
  2635. ``/testmem:off'' only if you're using DOS 6.2; for earlier 
  2636. versions of DOS say just:
  2637. device=dos\himem.sys
  2638.                                          Windows 3.1 comes with 
  2639. its own version of HIMEM.SYS. That version is earlier (and worse) 
  2640. than the version that comes with DOS 6 & 6.2, but it's better 
  2641. than the DOS 5 version. So if you're stuck with DOS 5 or earlier, 
  2642. and your Windows is 3.1, say ``device=windows\himem.sys'' instead 
  2643. of ``device=dos\himem.sys''. Do not make that switch if you have 
  2644. DOS 6 or 6.2. If you have Windows 3 instead of Windows 3.1, make 
  2645. that switch just if your DOS is 4 or earlier.
  2646.                                          Omit the HIMEM.SYS line 
  2647. altogether if your computer is so primitive that it has less than 
  2648. 1M of RAM, or its CPU is slower than a 286, or you're Windowless 
  2649. with DOS 4 or earlier.
  2650.                                          EMM386.EXE (in modern 
  2651. DOS) The next equation (device=dos\emm386.exe ram d=48) makes the 
  2652. computer run the EMM386.EXE program, which is in the DOS folder. 
  2653. That program is a device driver that manages upper memory and 
  2654. also turns some extended RAM into expanded RAM (which is the kind 
  2655. of RAM required by old-fashioned programs).
  2656.   That program is called EMM386.EXE because it's an Expanded 
  2657. Memory Manager that runs on any computer whose CPU is at least a 
  2658. 386. It runs if your CPU is a 386, 486, or Pentium.
  2659.   Use the EMM386.EXE equation just if your CPU is very modern 
  2660. (386, 486, or Pentium) and your CONFIG.SYS file contains the 
  2661. HIMEM.SYS equation. If you switched the HIMEM.SYS equation from 
  2662. ``dos\himem.sys'' to ``windows\himem.sys'', switch the EMM386.EXE 
  2663. equation to ``windows\emm386.exe''.
  2664.   How much expanded RAM does EMM386.EXE create? The version of 
  2665. EMM386.EXE in DOS 6 & 6.2 is smart: it creates as much expanded 
  2666. RAM as necessary! It creates extra expanded RAM while 
  2667. old-fashioned software is running (such as the DOS versions of 
  2668. Word Perfect and 1-2-3), and creates less while modern software 
  2669. is running (such as Windows), since modern software wants 
  2670. extended RAM instead.
  2671.   The DOS 5 and Windows versions of EMM386.EXE are stupid: they 
  2672. want you to say how much expanded RAM to create, by inserting a 
  2673. number such as 512 before the ``ram'', like this:
  2674. device=dos\emm386.exe 512 ram d=48
  2675. The 512 tells the computer to create 512K of expanded RAM. 512 is 
  2676. the best number to pick if your computer has 4M of RAM and you're 
  2677. using a wide variety of programs (Windows programs and 
  2678. non-Windows programs). If you pick a bigger number than 512, you 
  2679. create more than 512K of expanded RAM; if you pick a smaller 
  2680. number, you create less expanded RAM and have more extended RAM 
  2681. left. Pick a big number (such as 1024) if your RAM is bigger than 
  2682. 4M and you're using mainly old software wanting expanded RAM 
  2683. (such as the DOS versions of Word Perfect and Lotus 1-2-3). Pick 
  2684. a small number (such as 256) if your RAM is smaller than 4M or 
  2685. you're using mainly modern software (such as Windows). If you 
  2686. omit the number, the computer assumes 256.
  2687.   If all your software is modern (so you don't need any expanded 
  2688. RAM at all), type ``noems'' instead of ``ram'', like this:
  2689. device=dos\emm386.exe noems d=48
  2690. The ``noems'' tells the EMM386.EXE not to bother turning extended 
  2691. RAM into expanded RAM, but to still manage upper memory.
  2692.   The EMM386.EXE program reserves at most 32K of RAM for direct 
  2693. memory access (DMA), unless you say ``d=48'', which reserves 48K 
  2694. instead. Say ``d=48'' just if you have a sound card (or any other 
  2695. device requiring more than 32K of DMA).
  2696.   DOS (in modern DOS) The next equation (dos=high,umb) moves some 
  2697. software out of the base RAM and puts that software elsewhere 
  2698. instead, so the base RAM has more space left for other programs.
  2699.   That equation is an abbreviation for this pair of equations:
  2700. EquationMeaning
  2701. dos=highmove buffers & part of DOS to the high memory area
  2702. dos=umb move utility programs to the upper memory area
  2703.   The computer understands ``dos=high'' just if CONFIG.SYS 
  2704. contains a HIMEM.SYS equation. The computer understands 
  2705. ``dos=umb'' just if CONFIG.SYS contains an EMM386.EXE equation. 
  2706. So if CONFIG.SYS mentions HIMEM.SYS but not EMM386.EXE, say just:
  2707. dos=high
  2708.  
  2709.                                          Stacks (in DOS 3.3 & up) 
  2710. The next equation (stacks=0,0) tells the computer that your 
  2711. software handles interruptions well, so there are no stacks of 
  2712. unexplained interrupts, and the computer doesn't need to reserve 
  2713. any RAM for them.
  2714.                                          If your software is so 
  2715. unreliable that the computer gripes by saying ``Stack Overflow'' 
  2716. or ``Exception error 12'', say:
  2717. stacks=9,256
  2718. That makes the computer create 9 stacks, each containing 256 
  2719. bytes. If the computer still gripes, create even more stacks (up 
  2720. to 64) and make them bigger (up to 512 bytes each). If the 
  2721. computer still gripes, buy better software!
  2722.                                          Omit the stacks equation 
  2723. if your DOS is earlier than version 3.3.
  2724.                                          Buffers The next 
  2725. equation (buffers=40) makes the computer reserve enough RAM to 
  2726. hold copies of 40 of the disk's sectors. That speeds up the 
  2727. computer since the computer can look at those RAM copies faster 
  2728. than waiting for the disk to spin to the correct sector.
  2729.                                          Each buffer consumes ½K 
  2730. of RAM. The 40 buffers therefore consume 20K of RAM.
  2731.                                          If your DOS is classic 
  2732. or your RAM is smaller than 1M, you can't afford to devote 20K of 
  2733. RAM to buffers, so ask for fewer than 40 buffers: say 
  2734. ``buffers=15''.
  2735.                                          If your computer uses a 
  2736. program called SMARTDRV (which I don't recommend), say 
  2737. ``buffers=10''.
  2738.                                          Files The next equation 
  2739. (files=50) makes the computer reserve enough RAM to hold 50 
  2740. filenames, so the computer can manipulate 50 files 
  2741. simultaneously.
  2742.                                          Most programs manipulate 
  2743. just a few files simultaneously. For those programs, saying 
  2744. ``files=30'' is fine. But some programs try to manipulate more 
  2745. than 30 files simultaneously and require you to say ``files=50'' 
  2746. or even ``files=60'' or even ``files=99''.
  2747.                                          If you wish, start by 
  2748. saying ``files=30'' and then see whether any of your fancy 
  2749. programs complain; if they complain, switch to a higher number.
  2750.                                          ANSI.SYS The next 
  2751. equation (devicehigh= dos\ansi.sys) makes the computer run the 
  2752. ANSI.SYS program, which lets the screen display special 
  2753. characters and colors. That equation is ignored by most software, 
  2754. but it's required by some software, especially when your computer 
  2755. is using a modem to telecommunicate with computerized bulletin 
  2756. boards trying to put pretty boxes of info onto your screen.
  2757.                                          If you wish, try 
  2758. omitting the ANSI.SYS equation, and put it back in just if you 
  2759. encounter software that gripes about missing ANSI.SYS.
  2760.                                          Notice the equation 
  2761. begins with the word ``devicehigh'' instead of ``device''. The 
  2762. ``high'' makes the computer put ANSI.SYS into upper memory 
  2763. instead of base RAM, so the base RAM is free for other purposes.
  2764.                                          The computer understands 
  2765. the ``high'' just if CONFIG.SYS mentions ``umb'' (as in 
  2766. ``dos=umb'' or ``dos=high,umb''). If CONFIG.SYS does NOT mention 
  2767. ``umb'', say ``device'' instead of ``devicehigh'', like this:
  2768. device=dos\ansi.sys
  2769.                                          SETVER.EXE (in modern 
  2770. DOS) The next equation (devicehigh=dos\setver.exe) makes the 
  2771. computer run the SETVER.EXE program, which makes your new DOS 
  2772. pretend to be an old version, so old software will still work 
  2773. when you buy the new DOS.
  2774.                                          This equation is useful 
  2775. only in modern DOS. Omit the equation if your DOS is classic.
  2776.   Even in modern DOS, you can often omit this equation, since 
  2777. most software doesn't care which version of DOS you bought. 
  2778. Include the equation just if you're using old software that 
  2779. gripes about your new DOS.
  2780.   On my computer, I include this equation because I like to use 
  2781. an old DOS program called BACKUP.EXE. Since that program gripes 
  2782. when it discovers I'm using DOS 6.2 instead of DOS 5, I must make 
  2783. DOS 6.2 pretend to be DOS 5.
  2784.   When typing the equation, say ``device'' instead of 
  2785. ``devicehigh'' if your CONFIG.SYS lacks ``umb''.
  2786.   Mtmcdas (supplement to DOS) My CONFIG.SYS file's bottom 
  2787. equation (devicehigh= mtmcdas.sys /d:mscd000 /p:320) makes the 
  2788. computer run the MTMCDAS.SYS driver program, which controls 
  2789. Mitsumi's brand of CD-ROM drive.
  2790.   That driver program is special. I got it from Mitsumi, not from 
  2791. Microsoft. It does not come as part of MS-DOS. Use it just if 
  2792. your CD-ROM drive is made by Mitsumi.
  2793.   My other fancy computer uses a CD-ROM drive made by Sony 
  2794. instead of Mitsumi. On that computer, I use Sony's driver program 
  2795. (which is called SLCD.SYS), and the line looks like this:
  2796. devicehigh=slcd.sys /d:mscd000 /b:300 /m:p
  2797.   If you use a different brand of CD-ROM drive, you must use a 
  2798. different driver. Even if you have the same drive as I, you might 
  2799. have to change the switches (such as /p:320 and /b:300) to make 
  2800. the drive compatible with your computer.
  2801.   If your CD-ROM drive works fine, so does your CONFIG.SYS's 
  2802. CD-ROM line: leave it the way your manufacturer gave it to you!
  2803.   If you don't have a CD-ROM drive at all, omit this line 
  2804. altogether.
  2805.   Your own CONFIG.SYS If your drive C's root directory doesn't 
  2806. contain a CONFIG.SYS file yet, create one! For example, you can 
  2807. create a CONFIG.SYS file just like mine by typing this ___ 
  2808. C:\>copy con config.sys
  2809. device=dos\himem.sys /testmem:off
  2810. device=dos\emm386.exe ram d=48
  2811. dos=high,umb
  2812. stacks=0,0
  2813. buffers=40
  2814. files=50
  2815. devicehigh=dos\ansi.sys
  2816. devicehigh=dos\setver.exe
  2817. devicehigh=mtmcdas.sys /d:mscd000 /p:320
  2818. and then pressing the F6 key and then ENTER. That's the perfect 
  2819. CONFIG.SYS for my fanciest computer; but for your computer, 
  2820. modify those equations to handle your computer's peculiarities, 
  2821. as I suggested when I explained each equation.
  2822.   If your drive C's root directory contains a CONFIG.SYS file 
  2823. already, you can edit it by saying ``edit config.sys'' (in modern 
  2824. DOS) or ``edlin config.sys'' (in classic DOS). But before you 
  2825. perform surgery on your CONFIG.SYS file, copy it onto a floppy 
  2826. disk (by saying ``copy config.sys a:''), so that if you make a 
  2827. mistake you can return to what you had before.
  2828.   The computer examines the CONFIG.SYS equations just when the 
  2829. computer is booting. If you edit CONFIG.SYS or create a new 
  2830. CONFIG.SYS, the computer won't obey the new CONFIG.SYS equations 
  2831. until the next time you boot the computer.
  2832.                                          If your dealer or 
  2833. colleague has put many strange lines into your CONFIG.SYS file, 
  2834. do not erase them until you find out why they're there. Most of 
  2835. those lines are probably time-wasting junk put there by bloated 
  2836. Microsoft DOS installation routines and should be erased, but 
  2837. some of those lines might be essential. Be especially cautious 
  2838. about erasing any lines saying ``device='' or ``devicehigh=''.
  2839.                                          When in doubt, leave 
  2840. your CONFIG.SYS alone. Better safe than sorry! Follow the advice 
  2841. of the world's best repairman: ``If it ain't broke, don't fix 
  2842. it.''
  2843.                                          Hints If you're 
  2844. ambitious and try to ``improve'' a CONFIG.SYS file, here are some 
  2845. hints.
  2846.                                          Say ``devicehigh'' 
  2847. instead of ``device'', except for the lines about HIMEM.SYS and 
  2848. EMM386. For ``devicehigh'' to work, CONFIG.SYS must mention 
  2849. ``umb''.
  2850.                                          The purpose of 
  2851. ``smartdrv'' and ``fastopen'' is to help the computer get 
  2852. information from the disk faster; but if you have an IDE drive 
  2853. (or any other drive with a built-in disk cache), your drive is 
  2854. fast enough already! You should usually remove any mention of 
  2855. ``fastopen'' (which conflicts with commands such as ``defrag'') 
  2856. and ``smartdrv'' (which consumes too much RAM, can conflict with 
  2857. telecommunications programs, and can cause inconsistent writing 
  2858. to the disk).
  2859.                                          To avoid conflicts, the 
  2860. letters ``emm'' must appear in CONFIG.SYS just once. For example, 
  2861. if your CONFIG.SYS mentions ``emm386.exe'', it must not mention 
  2862. ``emm386.sys'' or anything about ``qemm'' or ``nemm''.
  2863.                                          You should usually 
  2864. remove any line saying ``break=on'', which slows your computer 
  2865. down. The purpose of ``break=on'' is to let you interrupt the 
  2866. computer more easily; but once you learn how to control the 
  2867. computer correctly, you won't want to interrupt it anyway!
  2868.                                          Unless your computer is 
  2869. wired to a computer network, you can safely save some RAM by 
  2870. removing any mention of ``lastdrive''.
  2871.                                          If you remove a line 
  2872. saying ``shell'', you must copy COMMAND.COM from the DOS folder 
  2873. to the root directory by saying ___ 
  2874. C:\>copy dos\command.com
  2875. and if you're using DOS version 4 (or 4.01) you must also say:
  2876. C:\>copy dos\share.exe
  2877.                                          If your computer's a 
  2878. Leading Edge Model D, make sure your CONFIG.SYS file contains a 
  2879. line saying ``device=clkdvr.sys'' and the root directory contains 
  2880. Leading Edge's CLKDVR.SYS program, which teaches your computer 
  2881. how to give the correct date and time.
  2882.                                          For free help, phone me 
  2883. anytime at 617-666-2666.
  2884.  
  2885.                                                     COMMAND.COM
  2886.                                          After the computer deals 
  2887. with the issue of CONFIG.SYS, the computer looks in the boot 
  2888. drive for a program called ``COMMAND.COM''. (The computer looks 
  2889. in the root directory, unless CONFIG.SYS contained a ``shell='' 
  2890. equation telling the computer to look in the DOS folder instead.)
  2891.                                          If the computer doesn't 
  2892. find COMMAND.COM, the computer gripes:
  2893. Bad or missing Command Interpreter
  2894.                                          If the computer does 
  2895. find COMMAND.COM, the computer runs the COMMAND.COM program, 
  2896. which teaches the computer how to react to internal commands 
  2897. (such as ver, echo, cls, date, time, dir, cd, md, copy, type, 
  2898. rename, ren, del, and rd).
  2899.             AUTOEXEC.BAT
  2900.   Next, the computer looks in the boot drive's root directory for 
  2901. a batch file called ``AUTOEXEC.BAT''. The computer AUTOmatically 
  2902. EXECutes any commands in that file.
  2903.   Does your computer have a hard disk? If so, does drive C's root 
  2904. directory contain AUTOEXEC.BAT? To find out, say:
  2905. C:\>type autoexec.bat
  2906.   If you're lucky, that command will make the screen show you 
  2907. what's in the AUTOEXEC.BAT file. (If you're unlucky, the computer 
  2908. will just reply, ``File not found'', which means the computer 
  2909. can't find an AUTOEXEC.BAT file.)
  2910.   On my fanciest computer, when I say ___ 
  2911. C:\>type autoexec.bat
  2912. the computer shows me this batch of DOS commands:
  2913. @echo off
  2914. path c:\dos;c:\windows
  2915. set temp=c:\dos
  2916. set blaster=a220 i7 d1 t4
  2917. set sound=c:\sgnxpro
  2918. Lh mouse
  2919. Lh doskey
  2920. Lh mscdex /d:mscd000 /m:10 /e
  2921.   In certain situations, I recommend adding 4 extra lines, so the 
  2922. AUTOEXEC.BAT becomes this:
  2923. @echo off
  2924. prompt $p$g
  2925. path c:\dos;c:\windows
  2926. set temp=c:\dos
  2927. set blaster=a220 i7 d1 t4
  2928. set sound=c:\sgnxpro
  2929. Lh mouse
  2930. Lh doskey
  2931. Lh mscdex /d:mscd000 /m:10 /e
  2932. Lh mode LPT1 retry=b
  2933. Lh share /L:500 /f:5100
  2934. win
  2935.   Here's what all those lines mean ___ and how you might need to 
  2936. change some of them for your computer. . . . 
  2937.   Echo The top command (@echo off) prevents the computer from 
  2938. printing excessive messages on the screen. (To type the symbol 
  2939. ``@'', tap the 2 key while holding down the SHIFT key.)
  2940.   If your DOS is earlier than version 3.3, you must omit the 
  2941. symbol ``@'' and say just:
  2942. echo off
  2943.   Prompt The next command (prompt $p$g) tells the computer how to 
  2944. make the DOS prompts look, so that when you're in drive C's SARAH 
  2945. folder the computer will say ``C:\SARAH>'' instead of just 
  2946. ``C>''.
  2947.   If your DOS is earlier than 6 and you forget to say ``prompt 
  2948. $p$g'', the computer will say just ``C>'' instead of 
  2949. ``C:\SARAH>'', even when you're in the SARAH folder.
  2950.   DOS 6 & 6.2 is smarter: even if you don't say ``prompt $p$g'', 
  2951. DOS 6 & 6.2 assume you meant to say ``prompt $p$g''. So if you're 
  2952. using DOS 6 or 6.2, you don't need to say ``prompt $p$g''.
  2953.   Path The next command (path c:\dos;c:\windows) tells the 
  2954. computer to hunt in the DOS and WINDOWS folders whenever you give 
  2955. a command whose definition the computer can't find elsewhere.
  2956.   Use that command only if drive C has folders called ``DOS'' and 
  2957. ``WINDOWS''. If drive C has a DOS folder but no WINDOWS folder, 
  2958. say just:
  2959. path c:\dos
  2960.  
  2961.                                          If you forget to give a 
  2962. path command, and you're booting from drive C, DOS 6 & 6.2 assume 
  2963. you meant to say ``path c:\dos''. Earlier DOS versions make no 
  2964. assumptions; they create no path for you.
  2965.                                          Set temp The next 
  2966. command (set temp=c:\dos) says that whenever the computer needs 
  2967. to create a temporary file (which holds data temporarily and then 
  2968. self-destructs), the computer should put that file into the DOS 
  2969. folder (instead of into the root directory or a different 
  2970. folder).
  2971.                                          Use that command just if 
  2972. drive C has a folder called ``DOS''.
  2973.                                          Set blaster The next 
  2974. command (set blaster=a220 i7 d1 t4) helps a sound card work 
  2975. properly, if the sound card resembles the Soundblaster. Omit this 
  2976. command if you don't have a sound card or if your sound card 
  2977. isn't Soundblaster-compatible.
  2978.                                          Set sound The next 
  2979. command (set sound= c:\sgnxpro) says the files about sound are in 
  2980. a folder called SGNXPRO.
  2981.                                          Omit this command if you 
  2982. don't have a sound card. If you DO have a sound card, mention the 
  2983. correct folder; for example, if your sound folder is called 
  2984. AUDIO16 instead of SGNXPRO, say:
  2985. set sound=c:\audio16
  2986.                                          Mouse (supplement to 
  2987. DOS) The next command (Lh mouse) makes the computer run the 
  2988. MOUSE.COM program, which is a device driver that teaches the 
  2989. computer how to react when you move the mouse and click the 
  2990. mouse's buttons.
  2991.                                          The ``Lh'' tells the 
  2992. computer to ``load high'' the mouse program, so the computer 
  2993. copies the mouse program into upper memory. (The computer doesn't 
  2994. care whether you capitalize the L.)
  2995.                                          Use that command just if 
  2996. you have a mouse and a program called ``MOUSE.COM''.
  2997.                                          The MOUSE.COM program is 
  2998. not included in the price of DOS. Instead, you get the MOUSE.COM 
  2999. program on a floppy disk from the company that manufactured your 
  3000. mouse or computer, and you must copy the MOUSE.COM program onto 
  3001. your hard disk.
  3002.                                          The ``Lh mouse'' command 
  3003. works just if the MOUSE.COM program is in your root directory or 
  3004. DOS folder. If MOUSE.COM is in a different folder, remind the 
  3005. computer which folder MOUSE.COM is in. For example, if MOUSE.COM 
  3006. is in a folder called MOUSEY, say:
  3007. Lh mousey\mouse
  3008. If MOUSE.COM is in a folder called MICKEY, say:
  3009. Lh mickey\mouse
  3010. If MOUSE.COM is in a folder called MOUSE, say:
  3011. Lh mouse\mouse
  3012.                                          If your CONFIG.SYS file 
  3013. mentioned ``mouse'' already, don't put any mouse command in your 
  3014. AUTOEXEC.BAT file.
  3015.                                          Omit the ``Lh'' part of 
  3016. the command if your CONFIG.SYS file lacks any mention of ``umb''.
  3017.  
  3018.   Doskey (in modern DOS) The next command (Lh doskey) makes the 
  3019. computer run the DOSKEY.COM program. That program modifies DOS so 
  3020. that when you're typing a DOS command, you can edit the command 
  3021. easily by pressing these keys:
  3022. Pressing the left-arrow key moves the cursor left without erasing 
  3023. characters. Pressing the right-arrow key moves the cursor to the 
  3024. right.
  3025. Pressing the DELETE key deletes a character.
  3026. Pressing the INSERT key lets you type extra characters to insert.
  3027. Pressing the up-arrow key repeats the previous DOS command you 
  3028. typed.
  3029.   Use that command just if your DOS is modern. Omit the ``Lh'' 
  3030. part of the command if your CONFIG.SYS file lacks ``umb''.
  3031.   The command is useful just if you often type DOS commands and 
  3032. edit them. If you rarely type any DOS commands (because you 
  3033. mainly use Windows or menus instead), omit this command. 
  3034.   Mscdex (in DOS 6 & 6.2) The next command (Lh mscdex /d:mscd000 
  3035. /m:10 /e) makes the computer run the MicroSoft CD EXtension, 
  3036. which is a program that teaches the computer how to control your 
  3037. CD-ROM drive. Use this command just if you have a CD-ROM drive. 
  3038. The command is part of DOS 6 & 6.2.
  3039.   In the mscdex command, the ``/m:10'' says to reserve enough RAM 
  3040. to hold copies of 10 sectors from the CD-ROM. In other words, it 
  3041. creates 10 buffers.
  3042.   The ``/e'' says to put those buffers in expanded RAM (instead 
  3043. of in base RAM).
  3044.   The ``/d:mscd000'' says the CD-ROM drive is named mscd000.
  3045.   Instead of ``mscd000'', you can invent any other name you wish. 
  3046. Put the name in this command and also in CONFIG.SYS's CD-ROM 
  3047. equation.
  3048.   Omit the ``Lh'' part of the command if your CONFIG.SYS file 
  3049. lacks ``umb''.
  3050.   Mode The next command (Lh mode LPT1 retry=b) tells the computer 
  3051. to be patient and wait for the printer to respond even if the 
  3052. wait is long. Use this command just if your printer's an inkjet 
  3053. or a slow (4-page-per-minute) laser printer.
  3054.   To give this kind of command when your CONFIG.SYS file lacks 
  3055. ``umb'', omit the ``Lh'' and say just:
  3056. mode LPT1 retry=b
  3057. To give this kind of command when your DOS is earlier than 
  3058. version 4, say this instead:
  3059. mode LPT1 ,,p
  3060.   Share (in DOS 4 & modern DOS) The next command (Lh share /L:500 
  3061. /f:5100) makes the computer check whether programs might 
  3062. interfere with each other.
  3063.   If programs were designed well, no such checking would be 
  3064. needed. Unfortunately, a word-processing program called 
  3065. ``Microsoft Word 6 for Windows'' is designed poorly and must be 
  3066. prevented from interfering with other programs. Microsoft's other 
  3067. new word-processing programs for Windows (such as ``Microsoft 
  3068. Works 3 for Windows'' and ``Microsoft Publisher 2'') are designed 
  3069. poorly also and require a ``share'' command.
  3070.   Say ``Lh share /L:500 /f:5100'' just if you use a program that 
  3071. requires a ``share'' command, such as Microsoft Word 6 for 
  3072. Windows, Microsoft Works 3 for Windows, and Microsoft Publisher 
  3073. 2.
  3074.   Unfortunately, that ``share'' command makes all your programs 
  3075. run much slower. You'll wish you didn't buy Microsoft Word 6 for 
  3076. Windows!
  3077.                                          Win (supplement to DOS) 
  3078. The bottom command (win) makes the computer automatically start 
  3079. running Windows. Use this command just if Windows is required by 
  3080. nearly all your software. Omit this command if you often use 
  3081. non-Windows software.
  3082.   Since I frequently use the DOS non-Windows versions of Word 
  3083. Perfect and Q&A, my AUTOEXEC.BAT file does not say ``win''.
  3084.   Your own AUTOEXEC.BAT If your drive C's root directory doesn't 
  3085. contain an AUTOEXEC.BAT file yet, create one! For example, you 
  3086. can create an AUTOEXEC.BAT file by typing this ___ 
  3087. What to type      Changes you might make
  3088. C:\>copy con autoexec.bat
  3089. @echo off         If DOS is earlier than 3.3, omit ``@''.
  3090. prompt $p$g       DOS 6 & 6.2 let you omit this line.
  3091. path c:\dos;c:\windowsIf no Windows, omit ``;c:\windows''.
  3092. set temp=c:\dos   If no folder called ``DOS'', edit this.
  3093. set blaster=a220 i7 d1 t4If no sound card, omit this line.
  3094. set sound=c:\sgnxproIf no SGNXPRO folder, edit this.
  3095. Lh mouse          Say ``mouse\mouse'' if necessary.
  3096. Lh doskey         If your DOS is classic, omit this line.
  3097. Lh mscdex /d:mscd000 /m:10 /eIf no CD-ROM drive, omit this line.
  3098. Lh mode LPT1 retry=bOmit if printer works fine without it.
  3099. Lh share /L:500 /f:5100Omit if no Word for Windows 6.
  3100. win               Omit if use non-Windows programs.
  3101. then press the F6 key and then ENTER.
  3102.   If your drive C's root directory contains an AUTOEXEC.BAT file 
  3103. already, you can edit it by saying ``edit autoexec.bat'' (in 
  3104. modern DOS) or ``edlin autoexec.bat'' (in classic DOS). But 
  3105. before you perform surgery on your AUTOEXEC.BAT file, copy it 
  3106. onto a floppy disk (by saying ``copy autoexec.bat a:''), so that 
  3107. if you make a mistake you can return to what you had before.
  3108.   The computer examines the commands in AUTOEXEC.BAT just when 
  3109. the computer is booting. If you edit AUTOEXEC.BAT or create a new 
  3110. AUTOEXEC.BAT, the computer won't obey the new AUTOEXEC.BAT 
  3111. equations until the next time you boot the computer.
  3112.   If your dealer or colleague has put many strange lines into 
  3113. your AUTOEXEC.BAT file, don't erase them until you discover their 
  3114. purpose. When in doubt, leave AUTOEXEC.BAT alone.
  3115.   Hints If you're ambitious and try to ``improve'' an 
  3116. AUTOEXEC.BAT file, here are some hints.
  3117.   Make sure it's the top line that says ``@echo off'' (or the top 
  3118. pair of lines that say ``echo off'' and ``cls'').
  3119.   Just one line should say ``path''. For example, if a line says 
  3120. ``path c:\dos'' and a line says ``path c:\windows'', combine them 
  3121. into a single line saying ``path c:\dos;c:\windows''.
  3122.   The bottom line of AUTOEXEC.BAT is particularly important: it 
  3123. tells the computer what to show the human when AUTOEXEC.BAT 
  3124. finishes. If that line says ``win'', the computer will 
  3125. automatically do Windows. If that line says ``dosshell'', the 
  3126. computer will automatically run the DOS shell program, which 
  3127. crudely imitates Windows. If that line says ``menu'', the 
  3128. computer will automatically display a list of programs for the 
  3129. human to choose from (if you or your dealer created a file called 
  3130. ``MENU.BAT'' or ``MENU.COM'' or ``MENU.EXE''). If the bottom line 
  3131. mentions some other program, the computer will automatically run 
  3132. that program.
  3133.   Though it's cute to see the computer automatically run Windows, 
  3134. the DOS shell, a menu, or another program, it's a nuisance if 
  3135. you'd rather run a different program instead. I recommend that 
  3136. you delete any such line, so the computer will just say ``C:\>'' 
  3137. and wait for you to choose which program to run next. Then after 
  3138. that C prompt, type ``win'' or ``dosshell'' or ``menu'' or the 
  3139. name of some other program.
  3140.   You can remove any line saying ``ver'', since ``ver'' just 
  3141. makes the computer print a message saying which DOS version 
  3142. you're using.
  3143.   You can remove any line saying ``verify off'', since the 
  3144. computer does ``verify off'' even if you don't say so!
  3145.   Every modern computer includes a battery-powered clock/calendar 
  3146. chip, which keeps track of the time and date even when the 
  3147. computer is turned off. That chip is missing from old-fashioned 
  3148. computers (such as the original IBM PC), which must be coached by 
  3149. inserting ``date'' and ``time'' lines into your AUTOEXEC.BAT 
  3150. file.
  3151.   If your CONFIG.SYS file has a line mentioning 
  3152. ``shell=c:\dos\command.com'' (which tells the computer to find 
  3153. COMMAND.COM in the DOS folder instead of in the root directory), 
  3154. your AUTOEXEC.BAT file should have a line saying ``set 
  3155. comspec=c:\dos\command.com''.
  3156.   For free help in editing your AUTOEXEC.BAT file, phone me 
  3157. anytime at 617-666-2666.
  3158.   No AUTOEXEC.BAT If the computer doesn't find AUTOEXEC.BAT, the 
  3159. computer automatically performs the ``date'' and ``time'' 
  3160. commands (which ask you to confirm the date and time). Then the 
  3161. computer prints a DOS prompt and waits for you to type a DOS 
  3162. command.
  3163.   Riddle Congratulations! Now you're smart enough to master the 
  3164. answer to the favorite riddle among programmers.
  3165. Riddle: What do you get when you cross Lee Iacocca with a 
  3166. vampire?
  3167. Answer: an AUTOEXEC.BAT
  3168.  
  3169.              Your input
  3170.   After the computer deals with the issue of AUTOEXEC.BAT, the 
  3171. computer waits for you to type something on the keyboard (such as 
  3172. a DOS command).
  3173.  
  3174.                Reboot
  3175.   You've learned that when you turn the computer on, the computer 
  3176. performs this boot procedure: the computer does a power-on self 
  3177. test (POST), decides whether to boot from drive A or drive C, 
  3178. then obeys all commands in the boot drive's IO.SYS, MSDOS.SYS, 
  3179. CONFIG.SYS, COMMAND.COM, and AUTOEXEC.BAT and waits for your 
  3180. input.
  3181.   After using the computer awhile, suppose you hit some wrong 
  3182. keys that make the computer start acting strangely, and you're so 
  3183. confused by the whole situation that you don't know what to do. 
  3184. When all else fails, boot the computer again. That's called 
  3185. rebooting. Here are three ways to reboot. . . . 
  3186.   Method 1: power down Turn the computer off. Wait 10 seconds 
  3187. (for the RAM chips to cool down and forget whatever crazy stuff 
  3188. they were thinking of). Turn the computer back on again.
  3189.   Since that procedure makes you wait for the RAM chips to cool 
  3190. down, it's called a cold reboot.
  3191.                                          Method 2: RESET Press 
  3192. the RESET button, by using your favorite finger.
  3193.                                          That button's not on the 
  3194. keyboard. Instead, it's usually on the front of the computer 
  3195. system's unit, somewhere near the floppy drive's door.
  3196.                                          (You'll find the RESET 
  3197. button on most clones but not on computers built by IBM. On some 
  3198. obsolete clones, the reset button is on the back of the system 
  3199. unit.)
  3200.                                          When you press that 
  3201. button, the computer stops whatever it was doing. The screen goes 
  3202. blank. The computer beeps, then reboots by doing the POST, etc.
  3203.                                          That's called ``giving 
  3204. the machine the finger''. It's also called a one-finger reboot or 
  3205. hardware reboot or hard boot.
  3206.                                          Method 3: Ctrl Alt 
  3207. DELETE While holding down the Ctrl and Alt keys simultaneously, 
  3208. tap the key that says ``Delete'' (or ``Del''). That requires 
  3209. three fingers!
  3210.                                          That makes the computer 
  3211. stop whatever it was doing. The screen goes blank. The computer 
  3212. beeps, then reboots. But the computer abridges the reboot 
  3213. procedure: during the POST, it doesn't bother testing the RAM.
  3214.                                          That's called ``giving 
  3215. the machine three fingers''. It's also called a three-finger 
  3216. reboot or software reboot or soft boot or warm boot. It's the 
  3217. fastest way to reboot, since you don't have to wait for the RAM 
  3218. test or for the machine to cool down. But if the computer ever 
  3219. goes so wacko that it ignores your keyboard, it also ignores that 
  3220. three-finger reboot, so you must use one of the other rebooting 
  3221. methods instead.
  3222.                                          ``Hey, honey, how's work 
  3223. at the computer? Getting frustrated? Computer's not being 
  3224. nicey-nicey to yoosy-yoosy? Why don't you do a soft, warm boot? 
  3225. But wait, here's a soft, warm boot! In fact, here's a pair of 
  3226. them! Merry Christmas!''
  3227.                                          I have a nightmare that 
  3228. when making love to a woman, I accidentally hit the wrong 
  3229. combinations of her ``buttons'', she reboots, and I realize she 
  3230. was just a machine.
  3231.                                          I've met people like 
  3232. that. Haven't you? In the middle of a pleasant relationship, you 
  3233. accidentally hit the wrong ``buttons'', the person nastily 
  3234. reboots, and you realize the person you've been admiring is just 
  3235. a machine.
  3236.                                          If you're a politician, 
  3237. your goal is to make the voters find your opponent's reset button 
  3238. before they find yours.
  3239.  
  3240.                                                Make a disk bootable
  3241.                                          When you boot the 
  3242. computer (by turning it on, pressing RESET, or pressing Ctrl ALT 
  3243. DELETE), the computer looks in drive A or C for a bootable disk 
  3244. (a disk that's been formatted and contains the two hidden system 
  3245. files and COMMAND.COM).
  3246.                                          When you buy DOS, it 
  3247. usually comes on a pile of floppy disks. In that pile, the first 
  3248. disk is bootable. (Exception: if you bought the DOS 5, 6, or 6.2 
  3249. upgrade instead of DOS 5, 6, or 6.2 itself, the first disk in the 
  3250. DOS upgrade's pile is not bootable.)
  3251.                                          If your computer came 
  3252. with a hard disk containing DOS, your hard disk is bootable.
  3253.                                          If you have a bootable 
  3254. disk, you can make other disks become bootable. For example, if 
  3255. you have a bootable hard disk, here's how to make a blank floppy 
  3256. become bootable. . . . 
  3257.                                          First, turn the computer 
  3258. on without any floppy in the drive, so the computer says 
  3259. ``C:\>''. Then put the blank floppy into drive A.
  3260.   If the floppy wasn't formatted yet, say ``format a: /s''. That 
  3261. formats the floppy and copies onto it the two hidden system files 
  3262. and COMMAND.COM.
  3263.   If the floppy was formatted already, say ``sys a:''. That 
  3264. copies the two hidden system files to the floppy. If your DOS is 
  3265. modern, that command also copies COMMAND.COM. (If your DOS is 
  3266. classic, say ``sys a:'' and then say ``copy command.com a:''.)
  3267.   How to make a blank hard disk bootable Suppose you buy a hard 
  3268. disk that's new and totally blank, so it doesn't even contain 
  3269. DOS. Here's how to make it bootable.
  3270.   First, the hard disk must be low-level formatted. It's been 
  3271. low-level formatted already if the drive is IDE or if your dealer 
  3272. is nice. Otherwise, you must do a low-level format yourself. (The 
  3273. way to do a low-level format depends on which hard drive, 
  3274. hard-drive controller, and CPU you bought. For details, ask your 
  3275. dealer.)
  3276.   Next, put the first DOS floppy into drive A and turn the 
  3277. computer on. If you're using DOS 4 or modern DOS, the computer 
  3278. will automatically install DOS onto your hard disk and make the 
  3279. hard disk bootable; just follow the instructions you see on the 
  3280. screen. If you're using an earlier DOS, you must go through the 
  3281. following procedure instead. . . . 
  3282.   The computer will say ``A>'' or ``A:\>''.
  3283.   Next, tell the computer how to split the hard drive into 
  3284. several parts, called ``drive C'', ``drive D'', drive E'', etc. 
  3285. Each of those parts is called a partition. To partition the hard 
  3286. drive, say ``fdisk''. The computer will say:
  3287. Choose one of the following:
  3288.     1. Create DOS partition
  3289.     2. Change Active Partition
  3290.     3. Delete DOS Partition
  3291.     4. Display Partition Information
  3292. Enter choice: [1]
  3293. Choose option 1, by pressing the ENTER key. The computer will ask 
  3294. you several questions; respond to each by pressing the ENTER key. 
  3295. Tell the computer to make the primary DOS partition (drive C) be 
  3296. as large as possible and active. At the end of the process, 
  3297. reboot the computer (with the first DOS floppy still in drive A), 
  3298. so you see ``A>'' again.
  3299.    Then say:
  3300. A>format c: /s
  3301. That makes the computer format drive C. The ``/s'' makes the 
  3302. computer copy the hidden system files and COMMAND.COM onto drive 
  3303. C, so drive C becomes bootable.
  3304.   (When you give that format command, if the computer gripes by 
  3305. saying ``Invalid drive specification'', try again to partition 
  3306. the hard drive.)
  3307.  
  3308.             SPECIAL KEYS
  3309.                                          You can press these 
  3310. special keys. . . . 
  3311.  
  3312.                                                      PAUSE key
  3313.                                          Suppose you say ``dir 
  3314. dos'' or give some other command that makes the computer print a 
  3315. long message on your screen. If the computer is printing faster 
  3316. than you can read, make the computer pause (so you can catch up 
  3317. and read the message) by pressing the PAUSE key. That makes the 
  3318. computer pause until you press another key (such as ENTER).
  3319.                                          On modern keyboards, 
  3320. which have 101 or 102 keys, the PAUSE key is the last key in the 
  3321. top row. Older keyboards, which have just 83 keys, lack a PAUSE 
  3322. key: instead, tap the NUM LOCK key while holding down the Ctrl 
  3323. key.
  3324.  
  3325.                                                 Break (Ctrl PAUSE)
  3326.                                          Suppose you tell the 
  3327. computer to perform an activity that takes lots of time (such as 
  3328. print a long directory, or format a disk, or copy an entire 
  3329. disk). While the computer is performing, suppose you change your 
  3330. mind and want the computer to stop.
  3331.                                          To make the computer 
  3332. stop, tell the computer to break the activity. Here's how: tap 
  3333. the PAUSE key while holding down the Ctrl key.
  3334.                                          (If your keyboard 
  3335. doesn't have a PAUSE key, tap the SCROLL LOCK key while holding 
  3336. down the Ctrl key.)
  3337.                                          The computer will stop 
  3338. the activity. Then tell the computer what to do next: type your 
  3339. next command.
  3340.  
  3341.                                                 F5 (in DOS 6 & 6.2)
  3342.                                          In case CONFIG.SYS or 
  3343. AUTOEXEC.BAT contain errors that prevent the computer from 
  3344. booting properly, DOS 6 & 6.2 let you perform this trick. . . . 
  3345.                                          Try booting the 
  3346. computer; but when the computer says ``Starting MS-DOS'', 
  3347. immediately press the F5 key. That makes the computer skip 
  3348. CONFIG.SYS and AUTOEXEC.BAT and just give you a DOS prompt.
  3349.  
  3350.                                                 F8 (in DOS 6 & 6.2)
  3351.                                          When the computer says 
  3352. ``Starting MS-DOS'', try pressing F8 immediately (instead of F5).
  3353.                                          Then the computer shows 
  3354. you each line of CONFIG.SYS and asks you whether to obey the 
  3355. line. Press Y to make the computer obey the line, or press N to 
  3356. make the computer ignore the line.
  3357.                                          Then the computer asks 
  3358. you whether to obey AUTOEXEC.BAT. Press Y or N. If you press N, 
  3359. the computer skips AUTOEXEC.BAT. If you press Y instead, here's 
  3360. what happens: DOS 6 makes the computer do all of AUTOEXEC.BAT; 
  3361. DOS 6.2 makes the computer show you each line of AUTOEXEC.BAT and 
  3362. ask you to press Y or N for each line.
  3363.            Alt characters
  3364.   You can type these special characters:
  3365.  20 
  3366.  21 
  3367.  
  3368. 128 Ç     160 á     192 └     224 α
  3369. 129 ü     161 í     193 ┴     225 ß
  3370. 130 é     162 ó     194 ┬     226 Γ
  3371. 131 â     163 ú     195 ├     227 π
  3372. 132 ä     164 ñ     196 ─     228 Σ
  3373. 133 à     165 Ñ     197 ┼     229 σ
  3374. 134 å     166 ª     198 ╞     230 µ
  3375. 135 ç     167 º     199 ╟     231 τ
  3376. 136 ê     168 ¿     200 ╚     232 Φ
  3377. 137 ë     169 ⌐     201 ╔     233 Θ
  3378. 138 è     170 ¬     202 ╩     234 Ω
  3379. 139 ï     171 ½     203 ╦     235 δ
  3380. 140 î     172 ¼     204 ╠     236 ∞
  3381. 141 ì     173 ¡     205 ═     237 φ
  3382. 142 Ä     174 «     206 ╬     238 ε
  3383. 143 Å     175 »     207 ╧     239 ∩
  3384. 144 É     176 ░     208 ╨     240 ≡
  3385. 145 æ     177 ▒     209 ╤     241 ±
  3386. 146 Æ     178 ▓     210 ╥     242 ≥
  3387. 147 ô     179 │     211 ╙     243 ≤
  3388. 148 ö     180 ┤     212 ╘     244 ⌠
  3389. 149 ò     181 ╡     213 ╒     245 ⌡
  3390. 150 û     182 ╢     214 ╓     246 ÷
  3391. 151 ù     183 ╖     215 ╫     247 ≈
  3392. 152 y     184 ╕     216 ╪     248 °
  3393. 153 Ö     185 ╣     217 ┘     249 ∙
  3394. 154 Ü     186 ║     218 ┌     250 ·
  3395. 155 ¢     187 ╗     219 █     251 √
  3396. 156 £     188 ╝     220 ▄     252 ⁿ
  3397. 157 ¥     189 ╜     221 ▌     253 ²
  3398. 158 ₧     190 ╛     222 ▐     254 ■
  3399. 159 ƒ     191 ┐     223 ▀
  3400.   For example, here's how to type the symbol ñ, whose code number 
  3401. is 164. Hold down the Alt key; and while you keep holding down 
  3402. the Alt key, type 164 by using the numeric keypad (the number 
  3403. keys on the far right side of the keyboard). When you finish 
  3404. typing 164, lift your finger from the Alt key, and you'll see ñ 
  3405. on your screen!
  3406.   Those characters are called alternate characters or Alt 
  3407. characters or IBM graphics characters.
  3408.                                                     Repeat (F3)
  3409.                                          To repeat a DOS command, 
  3410. press the F3 key, then ENTER. Here are examples. . . . 
  3411.                                          Suppose you have a file 
  3412. called MARY and say ``print mary'' to print it on paper. To print 
  3413. a second copy (to hand a friend), you don't have to say ``print 
  3414. mary'' again: just press the F3 key. That makes the computer 
  3415. automatically put the words ``print mary'' on the screen again. 
  3416. Then press ENTER.
  3417.                                          Suppose you say ``dir 
  3418. a:'' to display a directory of the floppy in drive A. To see the 
  3419. directory of another floppy, put that floppy into drive A and 
  3420. then press the F3 key, which makes the computer say ``dir a:'' 
  3421. again. Press ENTER.
  3422.                                          Suppose your hard disk 
  3423. contains a folder called SARAH, and you have a pile of floppy 
  3424. disks containing info that's simple (no folders or hidden files). 
  3425. Here's how to copy everything from those floppy disks to SARAH. 
  3426. Put the first floppy into drive A. Copy everything from that 
  3427. floppy to SARAH by saying ``copy a:*.* sarah''. Put the second 
  3428. floppy into drive A, then press the F3 key and ENTER. Put the 
  3429. third floppy into drive A, then press the F3 key and ENTER.
  3430.                                          Sometimes, the computer 
  3431. ignores the F3 key. That happens if you've recently given a 
  3432. command (such as ``edit'') that uses lots of RAM and ``steals'' 
  3433. that RAM from the F3 command.
  3434.                                          If your AUTOEXEC.BAT 
  3435. says ``Lh doskey'' (because your DOS is modern), you can press 
  3436. the up-arrow key instead of F3. The up-arrow key has two 
  3437. advantages over F3:
  3438. The up-arrow key is easier for humans to remember than F3 (which 
  3439. beginners confuse with F2 and F4).
  3440.  
  3441. Unlike F3, the up-arrow key always works, even if you recently 
  3442. gave a command such as ``edit'' that consumes lots of RAM.
  3443.  
  3444.  
  3445.            PRINT ON PAPER
  3446.   Normally, the computer prints its answers on the screen. To 
  3447. make the computer print its answers on the printer's paper 
  3448. instead, use any of the following methods. . . . 
  3449.  
  3450.           PRINT SCREEN key
  3451.   If your keyboard is modern (with 101 keys), one of the keys is 
  3452. marked ``Print Screen''.
  3453.   Dump Pressing the PRINT SCREEN key makes the printer dump onto 
  3454. paper a snapshot of everything that's on the screen. The snapshot 
  3455. on the paper is called a screen dump.
  3456.   Echo Try this experiment: while holding down the CONTROL key 
  3457. (which is marked ``Ctrl''), tap the PRINT SCREEN key. Then lift 
  3458. your fingers. That makes the computer perform this trick: it 
  3459. waits for you to type something, then copies your typing onto 
  3460. paper. The copying onto paper is called echoing.
  3461.   The computer will continue echoing onto paper whatever you type 
  3462. on the screen (and whatever the computer types on the screen), 
  3463. until you tell the computer to stop echoing (by pressing CONTROL 
  3464. with PRINT SCREEN again).
  3465.   Notice that to stop the echo, you hit the same keys that 
  3466. started the echo. That situation's called a toggle. A toggle is a 
  3467. key (or series of keystrokes) that tells the computer to start a 
  3468. process and, when hit again, tells the computer to stop.
  3469.   Computerists say, ``The printer-echo toggle is CONTROL with 
  3470. PRINT SCREEN.'' They also say, ``To toggle the printer echo, hit 
  3471. CONTROL PRINT SCREEN.''
  3472.   PrtSc key If your keyboard has just 83 keys (instead of 101), 
  3473. it has a ``PrtSc'' key instead of a ``Print Screen'' key. On such 
  3474. a keyboard, here's how to get a screen dump: while holding down 
  3475. the SHIFT key, press the ``PrtSc'' key. Here's how to start 
  3476. echoing: while holding down the Ctrl key, press the ``PrtSc'' 
  3477. key.
  3478.   PC Junior If your computer is a PC Junior, get a screen dump by 
  3479. pressing the Fn key then the PrtSc key; start echoing by pressing 
  3480. the Fn key then the Echo key.
  3481.   Laser printers If you're using a laser printer (such as the 
  3482. Hewlett-Packard Laserjet 2), you might see the printer's FORM 
  3483. FEED light go on. That means a sheet of paper has been printed 
  3484. and is waiting to be removed from the printer.
  3485.   To remove the paper, turn off the ON LINE light (by tapping the 
  3486. ON LINE button), then press the FORM FEED button.
  3487.   After you've removed the paper, turn the ON LINE light back on 
  3488. (by pressing the ON LINE button again).
  3489.   IBM graphics characters If you try to make your printer print 
  3490. an IBM graphics character (such as Alt 164, which is ñ), the 
  3491. printer might print a weirder character instead, unless you're 
  3492. using software (such as a word processor) that reminds the 
  3493. printer to use IBM graphics characters.
  3494.                                                         Prn
  3495.                                          When giving a DOS 
  3496. command, you can use the printer by saying ``prn''. Here are 
  3497. examples. . . . 
  3498.                                          Pipe to printer If you 
  3499. type ``>prn'' at the end of a command, the computer will send the 
  3500. answers to the printer instead of to the screen.
  3501.                                          For example, to make the 
  3502. computer send a directory of drive A to the printer (instead of 
  3503. to your screen), give this command: ``dir a: >prn''. That's 
  3504. pronounced, ``directory of drive A, redirected to the printer'' 
  3505. or ``directory of drive A, piped to the printer''. The space 
  3506. before the symbol ``>'' is optional: you can say either ``dir a: 
  3507. >prn'' or ``dir a:>prn''.
  3508.                                          To print ``I love you'' 
  3509. on paper, give this command: ``echo I love you>prn''.
  3510.                                          To type all the lines of 
  3511. file MARY onto paper (instead of onto your screen), say ``type 
  3512. mary>prn''.
  3513.                                          Copy file to printer 
  3514. Another way to copy all the lines of MARY onto your printer's 
  3515. paper is to say ``copy mary prn''.
  3516.                                          To send info directly 
  3517. from your keyboard (console) to the printer, say ``copy con 
  3518. prn''. Underneath that command, type whatever sentences you want 
  3519. the printer to print. When you finish typing your last sentence, 
  3520. press the F6 key and then the ENTER key. Then the printer will 
  3521. print all the sentences.
  3522.  
  3523.                                                        Print
  3524.                                          Another way to print all 
  3525. MARY's lines onto paper is to say ``print mary''.
  3526.                                          (If the computer says 
  3527. ``Bad command or file name'', your computer is set up incorrectly 
  3528. and can't find the PRINT.COM program. In that case, remind the 
  3529. computer where the PRINT.COM program is. For example, if the 
  3530. PRINT.COM program is in your hard disk's DOS folder, say 
  3531. ``c:\dos\print mary''. If the PRINT.COM program is in drive A, 
  3532. say ``a:print mary''.)
  3533.                                          The first time you give 
  3534. the print command, the computer will ask you for the ``Name of 
  3535. list device''. To reply, just press the ENTER key.
  3536.                                          While the printer is 
  3537. printing MARY's lines, the screen will show a DOS prompt and let 
  3538. you continue typing DOS commands. So the computer is doing two 
  3539. things simultaneously ___ it's printing MARY's lines at the same 
  3540. time that it's letting you type additional commands. In that 
  3541. situation, MARY is said to be printed in the background.
  3542.  
  3543.               ANALYZE YOUR COMPUTER
  3544.   To analyze your computer, you can type ``dir'' (which tells you 
  3545. which files are on the disk) and ``chkdsk'' (which tells you how 
  3546. much the disk can hold, how much free space is left on the disk, 
  3547. how much conventional RAM you have, and how much free space is 
  3548. left in conventional RAM). I explained those commands earlier.
  3549.   Now I'll reveal additional commands, which let you analyze your 
  3550. computer more thoroughly, diagnose hidden ills, and help you cure 
  3551. those illnesses. Give these additional commands whenever you buy 
  3552. a new computer and want to find out whether you were ripped off, 
  3553. or whenever your computer acts sick, or whenever you want to 
  3554. supercharge your computer and make it super-healthy, or whenever 
  3555. you're just plain curious about what how your computer is faring!
  3556.  
  3557.            Mem (in DOS 4 & modern DOS)
  3558.   DOS 4, 5, 6, and 6.2 will tell you how much RAM memory is in 
  3559. your computer, if you say ``mem''.
  3560.   DOS 6.2 For example, my computer has DOS 6.2 and a 4-megabyte 
  3561. RAM. Saying ``mem'' makes it print this table on my screen:
  3562. Memory Type        Total  =   Used  +   Free
  3563. ----------------  -------   -------   -------
  3564. Conventional         640K       20K      620K
  3565. Upper                 91K       26K       65K
  3566. Reserved             384K      384K        0K
  3567. Extended (XMS)     2,981K      485K    2,496K
  3568. ----------------  -------   -------   -------
  3569. Total memory       4,096K      915K    3,181K
  3570.   That table's bottom line says the computer has 4 megabytes 
  3571. (4,096K) of memory chips. 915K of that memory is being used 
  3572. already, leaving 3,181K free to hold additional programs and 
  3573. data.
  3574.   The table's other lines show how the 4 megabytes is split into 
  3575. several parts: conventional RAM, upper RAM, reserved RAM, and 
  3576. extended RAM.
  3577.   Next, the computer prints a line of subtotals. Those subtotals 
  3578. show what happens when you add the conventional and upper RAM 
  3579. together:
  3580. Total under 1 MB     731K       46K      685K
  3581.   Then the computer prints this message:
  3582. Total Expanded (EMS)                3,392K (3,473,408 bytes)
  3583. Free Expanded (EMS)                 2,736K (2,801,664 bytes)
  3584. That means 3,392K of my extended RAM can be turned into expanded 
  3585. RAM. Some of that expanded RAM is consumed by the EMM386.EXE 
  3586. program itself, leaving 2,736K free.
  3587.   If you say ``mem /c/p'' (which means ``MEMory Classification 
  3588. with Pauses''), the screen will display a more detailed message, 
  3589. which also lists each program in the first megabyte and reveals 
  3590. how much RAM each of those programs consumes. (When you finish 
  3591. reading the first screenful, press ENTER to see the second.)
  3592.   DOS 6 In DOS 6, saying ``mem'' has almost the same effect as in 
  3593. DOS 6.2. Unfortunately, DOS 6 is too stupid to put commas in big 
  3594. numbers, and DOS 6 says ``Adapter RAM/ROM'' instead of 
  3595. ``Reserved''. 
  3596.   DOS 4 & 5 In DOS 4 & 5, saying ``mem'' makes the computer print 
  3597. this kind of message on your screen:
  3598. Message                 Meaning
  3599.  655360 bytes total conventional memoryThe conventional RAM is 
  3600. 655,360 bytes (640K).
  3601.  655360 bytes available to MS-DOSAll of those bytes can be used.
  3602.  630480 largest executable program sizeSince DOS itself consumes 
  3603.                         some of those bytes, 630,480 bytes remain 
  3604.                         for programs to use.
  3605. 1441792 bytes total EMS memoryThe EMS expanded memory is 
  3606. 1,441,792 bytes,
  3607. 1048576 bytes free EMS memoryof which 1 megabyte is left for 
  3608. programs to use.
  3609.  
  3610. 3145728 bytes total contiguous extended memoryMain extended 
  3611. memory is 3 megs.
  3612.       0 bytes available contiguous extended memoryNone of those 
  3613. bytes are wasted.
  3614. 1900544 bytes available XMS memorySome of those bytes were turned 
  3615.                         into expanded memory, leaving 1,900,544 
  3616.                         bytes.
  3617.  
  3618.                                                      Missing 
  3619. memory? If the ``mem'' command reports less available free memory 
  3620. than you expected, increase the available free memory by editing 
  3621. your CONFIG.SYS and AUTOEXEC.BAT files.
  3622.                                                      To make 
  3623. modern DOS manage extended memory, make sure your CONFIG.SYS file 
  3624. says ``device=dos\himem.sys''. To make those DOS versions manage 
  3625. expanded memory on a 386, 486, or Pentium, make sure CONFIG.SYS 
  3626. has a line mentioning ``emm386''.
  3627.                                                      In 
  3628. CONFIG.SYS and AUTOEXEC.BAT, avoid mentioning ``smartdrv'', which 
  3629. consumes lots of RAM.
  3630.  
  3631.                                                      Msd (in DOS 6 & 6.2)
  3632.                                                      If you have 
  3633. DOS 6 or 6.2 or Windows 3.1, you can say ``msd''. That makes the 
  3634. computer run the MicroSoft Diagnostics program, which analyzes 
  3635. your computer and prints its analysis on the screen.
  3636.                                                      The analysis 
  3637. tells you who manufactured the motherboard and ROM BIOS chip, 
  3638. what kind of CPU chip you have (8088, 286, 386, 486, or Pentium), 
  3639. how much RAM you have (conventional, extended, and expanded), 
  3640. what kind of video card you have, whether you're attached to a 
  3641. network, which version of DOS you're using, what kind of mouse 
  3642. you have, whether you have a game card (to attach a joystick), 
  3643. which disk drives you have (A, B, and C), how many parallel 
  3644. printer ports you have (to attach printers to), how many serial 
  3645. ports you have, and more!
  3646.                                                      When you 
  3647. finish reading the analysis, press the F3 key.
  3648.  
  3649.                                                      Scandisk (in DOS 6.2)
  3650.                                                      The ``chkdsk 
  3651. /f'' command makes the computer fix errors on your hard disk ___ 
  3652. but just the errors that are obvious. To fix all important 
  3653. errors, even the errors that are not obvious, say ``scandisk'' 
  3654. instead, like this:
  3655. C:\>scandisk
  3656.                                                      That command 
  3657. works just if you have DOS 6.2. Once you've given that command, 
  3658. the computer says, ``ScanDisk is now checking drive C''.
  3659.                                                      Then the 
  3660. computer starts testing five aspects of drive C: the drive's 
  3661. media descriptor, the file allocation tables, the directory 
  3662. structure, the file system, and the surface scan. Each of those 
  3663. tests is quick (just a few seconds), except for the surface scan, 
  3664. which typically takes about 20 minutes.
  3665.   The computer does the four quick tests. Then it gives you an 
  3666. estimate of how long the surface-scan test will take. It asks 
  3667. you:
  3668. Do you want to perform a surface scan now?
  3669. If you do, press ENTER; if you don't (because you're too 
  3670. impatient to wait for it to finish), press N instead.
  3671.   During all those tests, if the computer detects a error on your 
  3672. hard disk, the computer will try to fix it. Just follow the 
  3673. computer's instructions on the screen! If the computer says 
  3674. ``ScanDisk found data that might be lost files or directories'', 
  3675. press L then S.
  3676.   Verdict When the computer has finished all tests you requested, 
  3677. the computer will give you its verdict.
  3678.   If you're very lucky, the computer will give you this verdict:
  3679. ScanDisk did not find any problems on drive C.
  3680. If you're somewhat lucky, the computer will say this instead:
  3681. ScanDisk found and fixed problems on drive C.
  3682. If you're totally luckless, and your disk is too hideously 
  3683. screwed up to be fixable, the computer will give up and just say:
  3684. There are still errors on drive C.
  3685.   Dismissal After the computer prints one of those three 
  3686. verdicts, press the X key.
  3687.   Other drives If you want the computer to fix the disk that's in 
  3688. drive A instead of C, say ``scandisk a:'', like this:
  3689. C:\scandisk a:
  3690.  
  3691.        Defrag (in DOS 6 & 6.2)
  3692.   Suppose you delete a small file from your hard disk, so your 
  3693. hard disk acquires a small unused gap. If you then try to put a 
  3694. big file onto your hard disk, the computer might put part of the 
  3695. big file into the small unused gap and put the rest of the big 
  3696. file elsewhere, so that the big file consists of two separated 
  3697. fragments. In that case, the big file is said to be fragmented. 
  3698. Unfortunately, a fragmented file slows down the computer, since 
  3699. the computer must look in two separate parts of the disk to find 
  3700. the complete file.
  3701.   To make the computer handle the hard disk faster, rearrange the 
  3702. files on the disk so that none of the files are fragmented. 
  3703. That's called defragmenting the disk (or defragging the disk).
  3704.   How to defrag DOS 6 & 6.2 let you defrag drive C easily. Here's 
  3705. how. 
  3706.   First, make the computer display a normal C prompt, so you see 
  3707. this:
  3708. C:\>
  3709.   Next, make sure your disk is acting reliably. To check your 
  3710. disk's reliability, say ``scandisk'' (in DOS 6.2) or ``chkdsk/f'' 
  3711. (in DOS 6).
  3712.   After you've assured yourself that your disk is acting 
  3713. reliably, say ``defrag c: /f'', like this:
  3714. C:\>defrag c: /f
  3715.   That makes the computer defrag drive C fully. The computer will 
  3716. also put your files as close as possible to the directory tracks 
  3717. (the outermost tracks), so the computer can access the files 
  3718. faster.
  3719.   Usually, the process takes several minutes. (While you're 
  3720. waiting, go have a cup of coffee or a snack or go work on a 
  3721. non-computerized problem or make love.) When the computer's 
  3722. finished, it will play a quick burst of joyous music
  3723. and then say ``C:\>'' again, so you can give another DOS command.
  3724.                                          When to defrag About 
  3725. once a month (or whenever you're in the mood!), say ``defrag c: 
  3726. /f'' again, which rearranges the files again and restores 
  3727. youthful peppiness to your hard drive. Yes, saying ``defrag c: 
  3728. /f'' is like letting your hard drive drink from the fountain of 
  3729. youth!
  3730.  
  3731.                                                Msav (in DOS 6 & 6.2)
  3732.                                          To make sure your hard 
  3733. disk doesn't have any viruses, run the MicroSoft Anti-Virus 
  3734. program by saying ``msav'' at the C prompt, like this:
  3735. C:\>msav
  3736.                                          The computer will say 
  3737. ``MicroSoft Anti-Virus'' and ``Main Menu''. Press ENTER.
  3738.                                          The computer will check 
  3739. your entire RAM and hard disk for viruses. That's called scanning 
  3740. for viruses (or doing a virus scan).
  3741.                                          If the computer finds a 
  3742. virus, the computer will say ``Virus Found''. The computer will 
  3743. tell you the virus's name and which file it infected. To respond, 
  3744. press ENTER. The computer will get rid of the virus. That's 
  3745. called cleaning out the virus.
  3746.                                          If the computer notices 
  3747. a program was changed since the previous time you said ``msav'', 
  3748. the computer will say ``Verify Error''. The computer will tell 
  3749. you the program's name and how the program was changed. Usually 
  3750. this ``Verify Error'' message does not mean you have a virus; it 
  3751. usually means just that you installed a newer version of the 
  3752. program. To respond, press either D (to delete the program, 
  3753. because you think it's infected by a virus) or U (to tell the 
  3754. computer that you changed the program intentionally and to Update 
  3755. the computer's understanding of it) or O (to temporarily ignore 
  3756. the problem and cOntinue).
  3757.                                          When the computer has 
  3758. finished scanning for viruses, the computer will brag about the 
  3759. number of ``Viruses Detected and Cleaned''. Press the ENTER key, 
  3760. then the X key, then the ENTER key again.
  3761.                                          CHKLIST.MS While running 
  3762. the MicroSoft Anti-Virus program, the computer usually puts into 
  3763. each directory an extra file called CHKLIST.MS, which is a 
  3764. CHecKLIST created by MicroSoft. It lets the computer check for 
  3765. future ``Verify Errors''. The next time you say ``msav'', the 
  3766. computer looks at those CHKLIST.MS files again to see whether any 
  3767. suspicious changes have been occurring on your hard disk.
  3768.                                          If you're confident you 
  3769. won't acquire any viruses soon, you can erase those CHKLIST.MS 
  3770. files. Here's how.
  3771.                                          Say ``msav'' again at 
  3772. the C prompt, like this:
  3773. C:\>msav
  3774.                                          The computer will say 
  3775. ``MicroSoft Anti-Virus'' and ``Main Menu''. To delete all the 
  3776. CHKLIST.MS files, press the F7 key, then ENTER, then X, then 
  3777. ENTER again.
  3778.                                          Other drives To make the 
  3779. computer check whether drive A contains any viruses, say ``msav 
  3780. a:'', like this:
  3781. C:\>msav a:
  3782.                                          Check all disks If the 
  3783. computer ever finds a virus on one of your disks, make the 
  3784. computer check all your floppy disks and any additional hard 
  3785. disks you have, since the virus might have spread. If you've been 
  3786. swapping floppy disks or electronic mail with your friends, tell 
  3787. those friends you got a virus and to scan their disks too!
  3788.  
  3789.                TRICKS
  3790.   Amaze your friends! Try these tricks. . . . 
  3791.  
  3792.        Dir /s (in modern DOS)
  3793.   Suppose MARY is a file on your hard disk, but you forget which 
  3794. folder contains MARY. If your DOS is modern, just say:
  3795. C:\>dir mary /s
  3796.   The ``/s'' makes the computer search through all folders 
  3797. (subdirectories). The computer will tell you which folders 
  3798. contain MARY.
  3799.  
  3800.          /? (in modern DOS)
  3801.   Modern DOS lets you put ``/?'' at the end of any command. That 
  3802. makes your screen show a short reminder of how to use the command 
  3803. and its switches.
  3804.   For example, if you say ``dir /?'', your screen will show a 
  3805. short reminder of how to use the ``dir'' command and how to use 
  3806. ``dir'' switches (such as /p, /w, /o, /od, /os, /oe, /oen, /l, 
  3807. /b, /ah, /ad, and /s).
  3808.  
  3809.         Help (in modern DOS)
  3810.   Modern DOS understands your cries for help.
  3811.   DOS 5 If you say ``help'', DOS 5 prints on your screen an 
  3812. alphabetical list of all DOS commands and explains briefly what 
  3813. each command means.
  3814.   (You see the first part of that list. Press ENTER to continue 
  3815. and see the next part. To see the list on paper instead, say 
  3816. ``help>prn''.)
  3817.   DOS 6 & 6.2 If you say ``help'', DOS 6 & 6.2 print on your 
  3818. screen an alphabetical list of all DOS commands.
  3819.   (You see the top part of the list. To see the list's bottom, 
  3820. depress the down-arrow key awhile, or press the PAGE DOWN key 
  3821. twice. To see the top of the list again, press the PAGE UP key 
  3822. twice.)
  3823.   The commands are arranged in three columns.
  3824.   For details about a particular command (such as ``dir''), move 
  3825. the blinking cursor to that command by using the down-arrow key, 
  3826. up-arrow key, PAGE DOWN key, PAGE UP key, or TAB key. (The TAB 
  3827. key moves from column to column.) When the cursor's reached that 
  3828. command, press ENTER.
  3829.   You'll see details about the command's syntax (vocabulary and 
  3830. grammar). If the details are too long to fit on the screen, see 
  3831. the rest of them by pressing the PAGE DOWN key several times. If 
  3832. you want to print all the details on paper, tap the Alt key then 
  3833. F then P then ENTER.
  3834.   When you finish examining the command's syntax, do this: while 
  3835. holding down the Alt key, tap the N key (which means ``Next 
  3836. topic''). That gives you the next topic (the command's notes, or 
  3837. examples of how to use the command, or another command). To go 
  3838. back to the previous topic, do this: while holding down the Alt 
  3839. key, tap the B key (which means ``Back'').
  3840.   When you finish using the help system, tap the Alt key, then F, 
  3841. then X.
  3842.                                              Undelete (in modern DOS)
  3843.                                          Suppose you accidentally 
  3844. delete some important files. If your DOS is modern, you can get 
  3845. the files back!
  3846.                                          That's because when you 
  3847. say to delete a file, the file does not vanish. Instead, the file 
  3848. stays on the disk, but the filename's first letter is replaced by 
  3849. a symbol indicating you no longer need the file. That old file 
  3850. stays on the disk until newer files need to use that part of the 
  3851. disk. Then the old file gets covered up by the newer files.
  3852.                                          Here's how to try 
  3853. getting that old, deleted file back. (This method works only if 
  3854. you haven't created newer files that use the same part of the 
  3855. disk.)
  3856.                                          First, go to the drive 
  3857. and subdirectory where the deleted files were. For example, if 
  3858. the files were in drive A, make the computer say:
  3859. A:\>
  3860. If the files were in the hard drive's SARAH folder, make the 
  3861. computer say:
  3862. C:\SARAH>
  3863.                                          Then say ``undelete''. 
  3864. (If the computer says ``Bad command or filename'', the computer 
  3865. can't find the UNDELETE.EXE file that defines the word 
  3866. ``undelete''.)
  3867.                                          The computer will search 
  3868. on the disk for files you recently said to delete. (If the 
  3869. computer says ``No entries found'', you're probably in the wrong 
  3870. drive or wrong folder, or the files can no longer be undeleted.)
  3871.                                          When the computer finds 
  3872. a recently deleted file, it will print the file's name, except 
  3873. that the first letter will be replaced by a question mark. For 
  3874. example, if the file's name was MARY, the computer will say 
  3875. ``?ARY''. Then the computer will ask, ``Undelete?'' If you really 
  3876. want to undelete MARY, press Y; otherwise, press N. If you press 
  3877. Y, the computer will say, ``Please type the first character for 
  3878. ?ARY''. Since the first character of MARY is M, press M.
  3879.                                          The computer will do 
  3880. that procedure for each deleted file. Afterwards, to prove the 
  3881. files have been undeleted, say ``dir''.
  3882.  
  3883.                                                    Remark (rem)
  3884.                                          When the computer obeys 
  3885. your CONFIG.SYS file or a batch file (such as AUTOEXEC.BAT), the 
  3886. computer ignores any line that begins with the word ``rem''.
  3887.                                          For example, suppose 
  3888. your AUTOEXEC.BAT file contains a line saying ``Lh share /L:500 
  3889. /f:5100'', and you're debating whether to omit that line. Just 
  3890. insert ``rem'' at its beginning, so it becomes ``rem Lh share 
  3891. /L:500 /f:5100'', which makes the computer ignore the line. Then 
  3892. reboot the computer and see whether you like what happens. If you 
  3893. don't like what happens, edit that line again and remove the 
  3894. ``rem''. Inserting and removing the ``rem'' is quicker than 
  3895. deleting and retyping the entire line.
  3896.                                          The word ``rem'' means 
  3897. ``remark''. When the computer encounters a line that begins with 
  3898. the word ``rem'', the computer assumes the line is just a 
  3899. ``remark'' you're mumbling to yourself, so the computer ignores 
  3900. the line.
  3901.                                          The line beginning with 
  3902. ``rem'' can be a command you want to deactivate (such as ``rem Lh 
  3903. share /L:500 /f:5100'') or a remark you want to make to humans 
  3904. (such as ``rem this batch file was written by Joey when drunk'' 
  3905. or ``rem the next three lines were written by Microsoft to 
  3906. control the mouse'').
  3907.                 More
  3908.   Suppose your disk contains a poem called MARY. To see that poem 
  3909. on your screen, the usual method is to say ``type mary''. But if 
  3910. MARY contains more than 23 lines, it won't all fit on the screen.
  3911.   One way to see the long poem is to say ``type mary'' and then 
  3912. keep hitting the PAUSE key (to see a piece of the poem at a 
  3913. time).
  3914.   An easier way to see the poem is to say ``more<mary''. That 
  3915. resembles ``type mary'' but makes the computer automatically 
  3916. pause at the end of each screenful. (To make the computer 
  3917. continue to the next screenful, press ENTER.)
  3918.   The command ``more<mary'' is pronounced, ``more from mary''. 
  3919. When typing that command, make sure you type ``<'', which means 
  3920. ``from''. Do not type ``>''.
  3921.  
  3922.        Subst (in DOS 3.1 & up)
  3923.   Here's a nifty trick. Into drive B, put a disk that contains 
  3924. some files. Then say:
  3925. C:\>subst a: b:\
  3926. Afterwards, whenever you talk about drive A, the computer will 
  3927. SUBSTitute drive B instead. For example, if you say ``dir a:'', 
  3928. the computer will give you a directory of drive B.
  3929.   That command is useful in the following situation. . . .Suppose 
  3930. drive A is 5¼-inch and drive B is 3½-inch. In that situation, you 
  3931. should buy programs on 5¼-inch floppies rather than 3½-inch, 
  3932. because most programs and their manuals assume you're inserting 
  3933. the floppies into drive A. But suppose you make the mistake of 
  3934. buying a program on a 3½-inch floppy instead.
  3935.   If you insert that floppy into drive B, and the program gripes 
  3936. at you because it insists you put the floppy into drive A, just 
  3937. say ``subst a: b:\'', and try again to run the program. When the 
  3938. program checks to make sure you put the floppy into drive A, the 
  3939. program will think you obeyed, because the drive you put the 
  3940. floppy in is now called ``drive A''.
  3941.   When you finish using the ``subst a:'' command and want to turn 
  3942. your computer back to normal, delete the ``subst a:'' command by 
  3943. saying:
  3944. C:\>subst a: /d
  3945.  
  3946.                DO.BAT
  3947.   To organize the files on your hard disk, you can use many 
  3948. methods. My favorite is the ``DO.BAT'' method, which I invented. 
  3949. Here it is. . . . 
  3950.   How to create DO.BAT Put a file called ``DO.BAT'' into your DOS 
  3951. directory, by typing:
  3952. C:\>copy con dos\do.bat
  3953. @echo off
  3954. cd \%1
  3955. %1
  3956. cd \
  3957. dir /ad/o/w/L
  3958.   If your DOS is earlier than version 3.3, change the ``@echo 
  3959. off'' to this:
  3960. echo off
  3961. cls
  3962. In classic DOS, change the ``dir /ad/o/w/L'' to this:
  3963. dir *. /w
  3964.   When you've finished typing, press F6 and ENTER.
  3965.   What DO.BAT accomplishes That ``DO.BAT'' file defines the word 
  3966. ``do'' so that if you ever type a command
  3967. such as ``do music'', the computer will automatically go into the 
  3968. MUSIC folder (``cd \%1''), run the MUSIC program (``%1''), return 
  3969. to the root directory (``cd \''), and print a menu of all the 
  3970. disk's folders (``dir /ad/o/w/L'', which means ``directory of all 
  3971. directories, in alphabetical order, displayed wide across the 
  3972. screen, in Lowercase letters'').
  3973.                                          If you type ``do 
  3974. poker'', the computer will automatically go into the POKER folder 
  3975. (``cd \%1''), run the POKER program (``%/1''), return to the root 
  3976. directory (``cd \''), and print a menu of all the disk's folders 
  3977. again (``dir /ad/o/w/L'').
  3978.                                          If you type just the 
  3979. word ``do'', the computer will just return you to the root 
  3980. directory (``cd \'') and print a menu of all the disk's folders 
  3981. (``dir /ad/o/w/L'').
  3982.                                          So here are the rules:
  3983. Whenever you get confused, just type the word ``do''. It makes 
  3984. the computer return to the root directory and also display a menu 
  3985. of all the disk's folders.
  3986.  
  3987. To run a program, just say ``do'' followed by the program's name. 
  3988. For example, to run the MUSIC program, just say ``do music''. 
  3989. That automatically makes the computer go into the MUSIC folder, 
  3990. run the MUSIC program, then return to the root directory and 
  3991. display the menu of all the disk's folders again.
  3992.                                          Name each folder the 
  3993. same as its main file To let the DO.BAT program accomplish all 
  3994. that, you must set up your software properly. Here's how.
  3995.                                          For each major program 
  3996. you buy, create a folder.
  3997.                                          For example, suppose you 
  3998. buy a program called Marvelous Music, which comes on a pile of 
  3999. floppies. You should create a folder for Marvelous Music. Here's 
  4000. how.
  4001.                                          First, find out the name 
  4002. of Marvelous Music's main file. You can do that by reading the 
  4003. Marvelous Music instruction manual. For example, if the 
  4004. instruction manual says, ``to start the program, type the word 
  4005. MUSIC'', then the name of Marvelous Music's main file is MUSIC.
  4006.                                          Another way to find the 
  4007. name of Marvelous Music's main file is to put Marvelous Music's 
  4008. main disk into drive A and examine its directory (by typing ``dir 
  4009. a:''). If the directory shows a file ending in .EXE or .COM, that 
  4010. file's probably the main file. If the directory shows a file 
  4011. called AUTOEXEC.BAT, peek at what the AUTOEXEC.BAT file says (by 
  4012. saying ``type a:autoexec.bat''); it probably mentions the main 
  4013. file.
  4014.                                          Suppose you've 
  4015. discovered the main file's name is MUSIC (or MUSIC.EXE or 
  4016. MUSIC.COM). Then make a MUSIC folder on the hard disk by typing 
  4017. ``md music'', so your screen looks like this:
  4018. C:\>md music
  4019.                                          Next, put a Marvelous 
  4020. Music floppy into drive A. Copy all its files onto your hard 
  4021. disk's MUSIC folder by typing ``copy a:*.* music'', so your 
  4022. screen looks like this:
  4023. C:\>copy a:*.* music
  4024. Put another Marvelous Music floppy into drive A, and say ``copy 
  4025. a:*.* music'' again. Do the same for each floppy, until the 
  4026. entire set of Marvelous Music floppies has been copied to the 
  4027. hard disk's MUSIC folder.
  4028.                                          Repeat that procedure 
  4029. for each application program you bought.
  4030.                                          (Exception: some 
  4031. programs require you to say ``install'' or ``setup'' instead of a 
  4032. copy command. To find out whether to say ``install'' or 
  4033. ``setup'', read the manual that comes with the program. During 
  4034. the ``install'' or ``setup'' procedure, when the computer asks 
  4035. you to name the folder [subdirectory], name it the same as the 
  4036. main file that will be in it.)
  4037.   Try it! To test whether you created the folders correctly, try 
  4038. using DO.BAT. Here's how.
  4039.   Say ``do''. If DO.BAT is working correctly, saying ``do'' will 
  4040. make the computer display a list of all your folders. For 
  4041. example, if you created a MUSIC folder and a POKER folder, the 
  4042. computer will print a list that includes ``MUSIC'' and ``POKER''.
  4043.   To use MUSIC, say ``do music''. Then the computer will obey the 
  4044. DO.BAT file, automatically switch to the MUSIC folder, run the 
  4045. MUSIC program, and ___ when the MUSIC program finishes ___ 
  4046. automatically return to the root directory and print a menu of 
  4047. all folders, so you can choose which other application to run 
  4048. next.
  4049.   AUTOEXEC.BAT If you wish, put an extra line at the bottom of 
  4050. your AUTOEXEC.BAT file, and make that line say just ``do''.
  4051.   Then when you turn on the computer, the computer will 
  4052. automatically perform ``do'', so it will automatically display a 
  4053. list of all your folders. That list acts as a menu. For example, 
  4054. to choose MUSIC from that menu, say just ``do music''; that makes 
  4055. the computer do the MUSIC program and then show you the menu 
  4056. again.
  4057.   Windows The DO.BAT program manages just non-Windows programs. 
  4058. If you're using mainly Windows programs, don't bother creating 
  4059. DO.BAT and don't bother putting ``do'' at the bottom of your 
  4060. AUTOEXEC.BAT file.
  4061.  
  4062.                COPY & PROTECT WELL
  4063.                              Here's how to copy and protect the 
  4064. files you love.
  4065.  
  4066.                                        Msbackup (in DOS 6 & 6.2)
  4067.                              Eventually, some files will get 
  4068. accidentally erased from your hard disk, because you give the 
  4069. wrong command or your disk needs repair. To protect against that 
  4070. inevitable calamity, copy all your hard disk's important files 
  4071. onto floppy disks. Doing that is called ``backing up your hard 
  4072. disk onto floppies''. The copies (on the floppies) are called 
  4073. backups.
  4074.                              The niftiest way to back up your 
  4075. hard disk is to give the``msbackup'' command. To give that 
  4076. command, you must buy DOS 6 or 6.2.
  4077.                              (If your DOS is earlier than 6.2, 
  4078. skip ahead to the next section, which explains how to give the 
  4079. old ``backup'' command instead.)
  4080.                              How to back up To back up your hard 
  4081. disk by giving the ``msbackup'' command, just say ``msbackup'' at 
  4082. the C prompt, like this:
  4083. C:\>msbackup
  4084.                              If you're lucky, the computer will 
  4085. say ``Microsoft Backup 6.0''. But if your MSBACKUP program was 
  4086. never used before and was therefore never configured, the 
  4087. computer will gripe by saying ``Backup requires configuration for 
  4088. this computer.'' Here's how to respond:
  4089. Remove any floppies from your drives. Press ENTER seven times.
  4090.  
  4091. When the computer tells you, insert a blank disk into drive A and 
  4092. press ENTER.
  4093. When the computer tells you, insert a second blank disk into 
  4094. drive A.
  4095. The computer will say ``Backup Complete''. Press ENTER.
  4096.  
  4097. When the computer tells you, insert the first blank disk back 
  4098. into drive A and press ENTER.
  4099. When the computer tells you, insert the second blank disk back 
  4100. into drive A.
  4101. The computer will say ``Compare Complete''. Press ENTER three 
  4102. times.
  4103.  
  4104. Now your MSBACKUP program is configured, and the computer says 
  4105. ``Microsoft Backup 6.0''.
  4106.                              When the computer says ``Microsoft 
  4107. Backup 6.0'', press ENTER.
  4108.                              Near the left edge of the screen, 
  4109. you'll see this symbol: [-C-]. That represents drive C. If you 
  4110. also have a drive D, you'll also see the symbol [-D-].
  4111.                              Press the down-arrow key once, so 
  4112. you move to the [-C-], and the [-C-] becomes highlighted (its 
  4113. background becomes black instead of blue).
  4114.                              Now you have three choices:
  4115. Choice 1: if you want to back up ALL FILES from drive C (and you 
  4116. have a gigantic pile of floppies to put those files on), press 
  4117. the SPACE bar once or twice, until the phrase ``All files'' 
  4118. appears next to the [-C-].
  4119.  
  4120. Choice 2: if you want to back up THE SAME LIST OF FILES that you 
  4121. backed up the previous time, just let the [-C-] keep having the 
  4122. phrase ``Some files'' next to it.
  4123.  
  4124. Choice 3: if you want to back up JUST A FEW FILES from drive C, 
  4125. press the SPACE bar once or twice, until NO phrase appears next 
  4126. to the [-C-]. Press ENTER. You'll see a list of drive C's folders 
  4127. (directories). Press the down-arrow key several times, until a 
  4128. directory you want to back up is highlighted. In the right-hand 
  4129. part of the screen, you'll see a list of all files in that 
  4130. directory.
  4131.                              If you want to back up ALL the files 
  4132. in that directory, press the SPACE bar, so the symbol  appears 
  4133. next to the directory's name. If you want to back up JUST ONE of 
  4134. the files in that directory, do this instead: press the 
  4135. right-arrow key (to move to the right-hand part of the screen), 
  4136. press the down-arrow key several times (until the file you want 
  4137. to back up is highlighted), and press the SPACE bar, so a check 
  4138. mark appears next to the file's name.
  4139.                              If you want to back up SEVERAL 
  4140. directories, put the symbol  in front of each directory's name. 
  4141. To back up SEVERAL files, put a check mark in front of each 
  4142. file's name.
  4143.                              If you make a mistake and want to 
  4144. erase a symbol or check mark, just highlight it and then press 
  4145. the SPACE bar.
  4146.                              When you finish putting the symbols 
  4147. and check marks in front of everything you wish to back up, press 
  4148. ENTER.
  4149.                              After you've finished making one of 
  4150. those three choices, press S (which means ``Start backup'').
  4151.                              Put a blank floppy disk into drive 
  4152. A. Press ENTER. If the floppy wasn't formatted yet, the computer 
  4153. will automatically format it. (If the floppy wasn't blank, the 
  4154. computer will tell you what was on it; press the letter ``O'' to 
  4155. erase and Overwrite what was on it.)
  4156.   The computer will back up all the folders and files you 
  4157. requested. If they're too long to fit on one floppy, the computer 
  4158. will tell you to insert extra floppies. If you pause a while 
  4159. before inserting an extra floppy, you must press ENTER to confirm 
  4160. that you put it in.
  4161.   When the computer has finished, it will say ``Backup 
  4162. Complete''. Press ENTER, then Q (which means ``Quit'').
  4163.   How the backup is named The entire set of floppies you wrote on 
  4164. is called the backup set.
  4165.   The backup set has a name. For example, the backup set is named 
  4166. ``CC60124B'' if the backup set was created by backing up starting 
  4167. at drive C, ending at drive C, in 1996, on the date 01/24, and 
  4168. was that date's second backup set (backup #B).
  4169.   In that backup set, the first floppy contains a gigantic file 
  4170. called ``CC60124B.001''. The second floppy contains a gigantic 
  4171. file called ``CC60124B.002''. The third floppy contains a 
  4172. gigantic file called ``CC60124B.003''. Each gigantic file is a 
  4173. combo of several files from the hard disk.
  4174.   Restore If you ever want to use the backup set (because your 
  4175. hard disk has an accident), say this again:
  4176. C:\>msbackup
  4177. The computer will say ``Microsoft Backup 6.0'' again. Press the R 
  4178. key (which means ``Restore'').
  4179.   The computer remembers the names of all the backup sets you 
  4180. ever created and assumes you want to use the most recent set. For 
  4181. example, if your most recent backup set was named ``CC60124B'', 
  4182. the computer says:
  4183. Backup Set Catalog:
  4184. CC60124B.FUL
  4185.   (If you want to use an older backup set instead, press ENTER. 
  4186. You'll see a list of all the sets you ever created. Press the 
  4187. down-arrow key until the set you want to use is highlighted, then 
  4188. press the SPACE bar, so a check mark appears next to the set you 
  4189. want. Press ENTER.)
  4190.   Then press the down-arrow key twice, so the [-C-] is 
  4191. highlighted.
  4192.   You have two choices:
  4193. Choice 1: if you want to copy ALL THE BACKUP SET'S FILES to drive 
  4194. C, press the SPACE bar, so the phrase ``All files'' appears next 
  4195. to the [-C-]. Then press the TAB key.
  4196.  
  4197. Choice 2: if you want to copy JUST ONE FILE to drive C, press the 
  4198. ENTER key. You'll see a list of drive C's directories. Press the 
  4199. down-arrow key several times, until the directory you're 
  4200. interested in is highlighted. Then press the right-arrow key. 
  4201. Press the down-arrow key several times, until the file you're 
  4202. interested in is highlighted. Press the SPACE bar, so a check 
  4203. mark appears next to the file's name. Press the ENTER key.
  4204.   After you've finished making one of those two choices, press S 
  4205. (which means ``Start restore'').
  4206.   Put the backup set's first floppy in drive A. Press ENTER. When 
  4207. the computer tells you, put remaining floppies in drive A.
  4208.   When the computer has finished, it will say ``Restore 
  4209. Complete''. Press ENTER, then Q (which means ``Quit'').
  4210.  
  4211.     Backup (in early DOS versions) & restore
  4212.   The ``msbackup'' command requires DOS 6 or 6.2. If your DOS is 
  4213. earlier than DOS 6, use the ``backup'' and ``restore'' commands 
  4214. instead. Here's how.
  4215.   (If you're using DOS 6 or 6.2, skip ahead to the next section, 
  4216. entitled ``Copy instead of backup''.)
  4217.   Backup First, grab a pile of floppies. Make sure each floppy is 
  4218. blank, formatted, and the right size to fit in drive A.
  4219.   How much of the hard disk do you want to back up? The whole 
  4220. hard disk? Or just part of the hard disk? Just one folder? Just 
  4221. one file? Decide.
  4222.   Then give one of these commands:
  4223. What you want to back up        Command
  4224. a file named MARY in the root directoryC:\>backup c:mary a:
  4225. all files in the root directory C:\>backup c: a:
  4226. the entire hard disk (all files in root directory and in all 
  4227. folders)                        C:\>backup c: a: /s
  4228.  
  4229. all files in the SARAH folder   C:\>backup c:sarah a:
  4230. all files in the SARAH folder or in folders that are in 
  4231. SARAHC:\>backup c:sarah a: /s
  4232. a file named MARY in the SARAH folderC:\>backup c:sarah\mary a:
  4233.  
  4234.                                                      Then the 
  4235. computer will tell you to put a floppy into drive A. (The 
  4236. computer will also remind you that the floppy should be blank ___ 
  4237. and if the floppy is not blank, the computer will erase whatever 
  4238. was on it.) Go ahead: put a formatted floppy into drive A. Then 
  4239. press ENTER.
  4240.                                                      The computer 
  4241. will copy from the hard disk to that floppy disk. If that floppy 
  4242. disk becomes full, the computer will tell you to insert a second 
  4243. floppy disk. Put the second floppy into drive A, then press 
  4244. ENTER. The computer will tell you to insert a third floppy, 
  4245. fourth floppy, etc., until the copying is finished.
  4246.                                                      When the 
  4247. whole process is finished, what's on those floppies?
  4248.                                                      If your DOS 
  4249. is new (version 3.3, 4, or 5), the first floppy contains a pair 
  4250. of files called BACKUP.001 and CONTROL.001; the second floppy 
  4251. contains a pair of files called BACKUP.002 and CONTROL.002; the 
  4252. third floppy contains a pair of files called BACKUP.003 and 
  4253. CONTROL.003, etc. Those BACKUP and CONTROL files contain, in 
  4254. code, the backup copies of your hard disk's files.
  4255.                                                      If your DOS 
  4256. is earlier, the computer uses a more primitive system: the first 
  4257. floppy contains a file called ``BACKUPID.@@@'', plus many little 
  4258. backup files. For example, if you backed up a poem called MARY 
  4259. that was in the SARAH folder, one of the little backup files is 
  4260. called MARY; it contains the same info as the original poem but 
  4261. also contains an extra line saying ``\SARAH\MARY'', to remind the 
  4262. computer which folder the file came from.
  4263.                                                      Restore If 
  4264. you ever want to use those backup copies (because your hard disk 
  4265. has an accident), say:
  4266. C:\>restore a: c: /s
  4267. That makes the computer copy all files from the floppy pile back 
  4268. to the hard disk. If you want to copy just one of the files from 
  4269. the floppy pile (such as MARY in the SARAH folder), say:
  4270. C:\>restore a: c:sarah\mary
  4271.                                                      Notice that 
  4272. ``restore'' is the opposite of ``backup''. Use ``backup'' to copy 
  4273. from the hard disk to a pile of floppies; use ``restore'' to copy 
  4274. from a pile of floppies to the hard disk.
  4275.   The ``restore'' command puts back on the hard disk exactly what 
  4276. was there before the accident. On your hard disk, the ``restore'' 
  4277. command recreates destroyed files and destroyed folders. For 
  4278. example, if an accident totally destroyed your hard disk's SARAH 
  4279. directory, so that the name ``SARAH'' is no longer on the hard 
  4280. disk, don't worry: if you backed up the hard disk before the 
  4281. accident, the ``restore'' command will automatically create a 
  4282. folder on your hard disk, and name that folder ``SARAH'', and put 
  4283. back in it all the files that were destroyed.
  4284.   Since new versions of DOS handle the ``backup'' and ``restore'' 
  4285. commands differently than old versions, make sure you use the 
  4286. same DOS version for ``restore'' as you used for ``backup''.
  4287.   Make backups small Suppose you back up your entire hard disk 
  4288. onto a gigantic pile of floppies (by saying ``C:\>backup c: a: 
  4289. /s''). Suppose the first floppy in that pile gets a scratch on 
  4290. it. Later, when you try to say ``restore'', the computer notices 
  4291. the scratch on the first floppy, gripes at you, and refuses to 
  4292. restore. The entire pile of floppies has become useless, because 
  4293. of one scratch!
  4294.   To avoid losing a whole pile of floppies from one scratch, make 
  4295. smaller piles instead: back up just one subdirectory at a time, 
  4296. so that each subdirectory gets its own pile of floppies. That 
  4297. way, if a floppy gets a scratch, you lose just one subdirectory 
  4298. instead of the whole hard disk.
  4299.   Formatting during backup Before giving the backup command, 
  4300. you're supposed to have a pile of blank disks that have been 
  4301. formatted. What if one of the disks hasn't been formatted yet?
  4302.   If your DOS is modern, the backup command will format the disk 
  4303. for you. If your DOS is 3.2 or earlier, the computer will gripe 
  4304. about the unformatted disk. If your DOS is 3.3 or 4, the computer 
  4305. will gripe unless you said ``/f'' at the end of the backup 
  4306. command; the ``/f'' tells the computer to format any unformatted 
  4307. disks.
  4308.   Modified files If you say ``/m'' at the end of the backup 
  4309. command, the computer will back up just the files that ``need to 
  4310. be backed up''. Those are the files that have been edited or 
  4311. created since the last time you said ``backup''.
  4312.   The backup you create by saying ``/m'' is called the ``backup 
  4313. of modified files''. It's also called an incremental backup, 
  4314. since it consists of just the added files that weren't backed up 
  4315. before.
  4316.  
  4317.        Copy instead of backup
  4318.   If the group of files you want to back up is short enough so 
  4319. that the entire group fits on a single floppy, say ``copy'' 
  4320. instead of ``backup'' or ``msbackup'', since the ``copy'' command 
  4321. is easier and more reliable.
  4322.   If the group of files you want to back up is too long to fit on 
  4323. a single floppy, but you're too rushed to wait for the ``backup'' 
  4324. or ``msbackup'' command to handle a huge pile of floppies, try 
  4325. this trick: instead of telling the computer to ``backup'' to 
  4326. floppies, tell the computer to ``copy'' to a hard disk folder 
  4327. named BACKUP. Here are the details. . . . 
  4328.   If your hard disk doesn't contain a BACKUP folder already, make 
  4329. a BACKUP folder by saying:
  4330. C:\>md backup
  4331. Then to back up all the files in the SARAH folder, just tell the 
  4332. computer to copy SARAH's files to the BACKUP folder by saying:
  4333. C:\>copy sarah backup
  4334.                                          That scheme works just 
  4335. if your hard disk is big enough to hold the BACKUP folder. If you 
  4336. use that scheme, you should still back up your work onto floppies 
  4337. occasionally, in case the entire hard drive breaks and you lose 
  4338. both SARAH and the BACKUP folder.
  4339.                                          I recommand that you 
  4340. copy all important files to the BACKUP folder once a day, and 
  4341. back up all important files onto floppies once a week.
  4342.  
  4343.                                                       Be wary
  4344.                                          Never trust a computer! 
  4345. Even if you copied up your data to a BACKUP folder and floppies, 
  4346. the data you backed up might be wrong, and all those copies might 
  4347. be equally defective! To be safer, use these tricks. . . .
  4348.                                          Alternate between TWO 
  4349. piles of floppies. The first time you copy onto floppies, use the 
  4350. first pile. The second time you copy (the next day or week), use 
  4351. the second pile instead. The next time you copy, use the first 
  4352. pile again. The next time, use the second pile. The next time, go 
  4353. back to the first pile. Keep alternating! That way, if 
  4354. something's wrong with the data on today's pile, you can go back 
  4355. to the other pile. Nervous institutions (such as banks and the 
  4356. military) have seven piles ___ one for each day of the week. That 
  4357. way, if Friday's data is wrong ___ and so is the data for 
  4358. Thursday, Wednesday, Tuesday, Monday, and Sunday ___ you can at 
  4359. least go back to the good data you had last Saturday!
  4360.                                          Copy your work onto 
  4361. paper periodically, and keep the paper copies for several weeks. 
  4362. The nice thing about paper is: you can see what's on it. You 
  4363. don't have to worry about the paper being secretly defective. 
  4364. When dealing with data, paper's the only medium you can trust. 
  4365. Just don't leave it near your dog. Lock it in your filing 
  4366. cabinet. (I mean the paper, not the dog.)
  4367.  
  4368.                                               Where to put data files
  4369.                                          A hard disk contains 
  4370. programs and data files. In a typical business, the info in the 
  4371. data files changes daily, but the programs remain stable. The 
  4372. business makes backup copies of programs monthly but backs up 
  4373. data files daily, to ensure the backups incorporate the latest 
  4374. changes.
  4375.                                          To back up data files 
  4376. simply, some businesses put them all in a DATA folder 
  4377. (directory), backed up daily.
  4378.                                          Sharing the disk If 
  4379. several employees share a hard disk, they might accidentally 
  4380. destroy each other's data files. To prevent that, your business 
  4381. can give each employee a separate folder (directory). For 
  4382. example, you can put all of Fred's data files in a folder called 
  4383. FRED and put Mary's data files in folder MARY.
  4384.                                          An even surer way to 
  4385. prevent employees from destroying each other's data files is to 
  4386. give each employee a floppy disk. Fred gets a floppy labeled 
  4387. ``Fred's data''; Mary gets a floppy labeled ``Mary's data''. No 
  4388. data files are stored on the hard disk, which contains just 
  4389. programs. But employees dislike using floppies, which are slower 
  4390. than hard disks and can't handle long files.
  4391.                                          Recommendation I 
  4392. recommend keeping things simple by creating as few folders as 
  4393. possible. Put the MUSIC program and all its data files in the 
  4394. MUSIC folder. To distinguish Fred's music from Mary's, have Fred 
  4395. begin his filenames with an F, and have Mary's begin with M. Let 
  4396. Fred be responsible for backing up his own files, and Mary be 
  4397. responsible for backing up hers.
  4398.        Attrib (in DOS 3 & up)
  4399.   To protect your important files from being erased accidentally, 
  4400. make backup copies of the files (by saying ``backup'' or 
  4401. ``msbackup'' or ``copy'' or ``diskcopy'').
  4402.   Another way to protect the files is to give the ``attrib'' 
  4403. command. To use it, your DOS must be new (version 3 or newer).
  4404.   Here's how.
  4405.   Read only To protect a file named MARY, say ``attrib +r mary''. 
  4406. That prevents MARY from being accidentally changed.
  4407.   For example, if somebody tries to delete MARY by saying ``del 
  4408. mary'', the computer will refuse and say:
  4409. Access denied
  4410.   If somebody tries to delete many files by saying ``del *.*'', 
  4411. the computer will delete most files but not MARY.
  4412.   If somebody tries to create a new MARY and obliterate the old 
  4413. one (by saying ``copy con mary'', then typing some lines, then 
  4414. pressing F6 and ENTER), the computer will refuse and say:
  4415. Access denied - MARY
  4416.   If somebody tries to edit MARY by saying ``edit mary'', the 
  4417. computer will refuse and say:
  4418. Path/file access error
  4419.   If somebody tries to edit MARY by saying ``edlin mary'', the 
  4420. computer will refuse and say:
  4421. File is READ-ONLY
  4422.   If somebody tries to find out what MARY is (by saying ``dir 
  4423. mary'' or ``type mary'' or ``copy mary prn'') or rename MARY (by 
  4424. saying ``rename mary lambchop''), the computer will obey. The 
  4425. computer will let people read MARY but not destroy what's in 
  4426. MARY. That's because saying ``attrib +r mary'' means, ``give MARY 
  4427. the following ATTRIBute: Read only!''
  4428.   MARY will remain read-only forever ___ or until you cancel the 
  4429. ``attribute read-only''. To cancel, say ``attrib -r mary''. In 
  4430. that command, the ``-r'' means ``take away the read-only 
  4431. attribute'', so that MARY is not read-only and can be edited.
  4432.   Hide (in modern DOS) For a different way to protect MARY, say 
  4433. ``attrib +h mary''. That hides MARY, so that MARY will not be 
  4434. mentioned when you type ``dir''.
  4435.   After you've hidden MARY, it will not be affected by any 
  4436. ``del'', ``rename'' or ``copy''. If you try to wreck MARY by 
  4437. copying another file to it, the computer will say ``Access 
  4438. denied''. If you try to change MARY's attributes by saying 
  4439. ``attrib +r mary'' or ``attrib -r mary'', the computer will 
  4440. refuse and say ``Not resetting hidden file''.
  4441.   Although MARY is hidden and isn't mentioned when you say 
  4442. ``dir'', the computer will let you access that file if you're 
  4443. somehow in on the secret and know that the file exists and is 
  4444. called ``MARY''. For example, the computer will let you look at 
  4445. the file by saying ``type mary'' and edit the file by saying 
  4446. ``edit mary'' or ``edlin mary''. If you say ``edlin mary'' 
  4447. (because your DOS is too old to understand ``edit''), be careful: 
  4448. after the editing is done, the new MARY will be visible unless 
  4449. you say  ``attrib +h mary'' again.
  4450.   If MARY is hidden, you can ``unhide'' MARY (and make MARY 
  4451. visible again) by saying ``attrib -h mary''.
  4452.                                          System (in DOS modern) 
  4453. For an alternate way to hide MARY, say ``attrib +s mary''. That 
  4454. turns MARY into a system file, which is similar to being hidden.
  4455.                                          For the ultimate in 
  4456. hiding, say ``attrib +h +s mary''. Then even if somebody tries to 
  4457. unhide MARY by saying ``attrib -h mary'', MARY will still be 
  4458. hidden by the +s.
  4459.                                          To undo the +s, say 
  4460. ``attrib -s mary''.
  4461.                                          Archive (in DOS 3.2, 
  4462. 3.3, 4, and modern DOS) If you say ``/m'' at the end of the 
  4463. ``backup'' command, the computer backs up just the files that 
  4464. have been ``modified''. Files that have been modified (and 
  4465. therefore should be backed up) are called archive files.
  4466.                                          To turn MARY into an 
  4467. archive file (so that MARY will be backed up by the ``backup'' 
  4468. command with ``/m''), say ``attrib +a mary''.
  4469.                                          To prevent MARY from 
  4470. being backed up by the ``backup'' command with ``/m'', say 
  4471. ``attrib -a mary''.
  4472.                                          Normal After playing 
  4473. with MARY's attributes, you can make MARY be normal again by 
  4474. saying ``attrib -r -h -s +a mary''. That makes MARY be not 
  4475. read-only, not hidden, not a system file, and able to be backed 
  4476. up by the ``backup'' command with ``/m''.
  4477.                                          Examine the attributes 
  4478. To examine MARY's attributes, say ``attrib mary''. The computer 
  4479. will say ``MARY'' and print some letters. For example, if it 
  4480. prints the letters R, H, S, and A, it means MARY is read-only, 
  4481. hidden, system, and archive. If it prints just the letters R and 
  4482. H, it means MARY is read-only and hidden but not system or 
  4483. archive.
  4484.                                          If you say just 
  4485. ``attrib'' (without mentioning MARY), the computer will print a 
  4486. directory that tells you the attributes of every file.
  4487.        Xcopy (in DOS 3.2 & up)
  4488.   Instead of saying ``copy'', try saying ``xcopy'', which means: 
  4489. eXtended copy. The ``xcopy'' command resembles ``copy'' but has 
  4490. eXtended abilities, so it can perform fancier tricks.
  4491.   To use ``xcopy'', your DOS must be version 3.2, 3.3, 4, or 
  4492. modern. Since ``xcopy'' is an external command (defined by 
  4493. XCOPY.EXE), it works just if your computer is set up correctly 
  4494. and can find the XCOPY.EXE file.
  4495.   Here are examples of using ``xcopy''. . . . 
  4496.   Duplicating a floppy Suppose drive A contains a 5¼-inch floppy 
  4497. full of info, drive B contains a blank formatted 3½-inch floppy, 
  4498. and you want to copy all files from drive A to drive B.
  4499.   Since the drives are different sizes, you can't say ``diskcopy 
  4500. a: b:''. You can say ``copy a:*.* b:''; but that copies just the 
  4501. files in the root directory, not the folders.
  4502.   To copy all files ___ even the files that are in folders ___ 
  4503. say ``xcopy a: b: /s''. The ``/s'' makes sure that the copying 
  4504. includes all folders (subdirectories) that contain files.
  4505.   In modern DOS, that command copies all files except hidden and 
  4506. system files (such as IO.SYS and MSDOS.SYS). Classic DOS copies 
  4507. even those files.
  4508.   That command doesn't bother copying folders that are empty. To 
  4509. copy all folders, even the ones that are empty, say ``xcopy a: b: 
  4510. /s/e''.
  4511.   Copying a floppy to the hard disk Suppose drive A contains a 
  4512. floppy full of info. Here's how to create a folder called SARAH 
  4513. on your hard disk and make it contain everything that was on the 
  4514. floppy (all the floppy's files and folders):
  4515. C:\>xcopy a: sarah\ /s/e
  4516.   In that command, the backslash after ``sarah'' makes the 
  4517. computer create a folder named SARAH if it doesn't exist already. 
  4518. (By typing that backslash, you don't have to bother saying ``md 
  4519. sarah''.)
  4520.   The ``/s/e'' makes the computer copy everything from the floppy 
  4521. ___ even the floppy's folders. If you omit the ``/s/e'', the 
  4522. computer will copy just the files in the floppy's root directory.
  4523.   Duplicating a folder Suppose your hard disk contains a folder 
  4524. called SARAH. Here's how to make a copy called SARAH2 (so that 
  4525. your hard disk will contain both SARAH and SARAH2):
  4526. C:\>xcopy sarah sarah2\ /s/e
  4527.   In that command, the backslash after ``sarah2'' makes the 
  4528. computer create a folder named SARAH2 if it doesn't exist 
  4529. already. The ``/s/e'' makes the computer copy everything from 
  4530. SARAH ___ even folders that are in the SARAH folder.
  4531.   Renaming a folder Suppose your hard disk contains a folder 
  4532. called SARAH, and you want to change its name to TONY. The 
  4533. computer won't let you say ``rename sarah tony''. Instead, create 
  4534. a copy of SARAH called TONY (by saying ``xcopy sarah tony\ 
  4535. /s/e''), then remove SARAH (by saying ``rd sarah'' after deleting 
  4536. all of SARAH's files).
  4537.                                          Copying a folder to a 
  4538. floppy Suppose your hard disk contains a folder named SARAH, and 
  4539. you want to copy all SARAH's files to a floppy in drive A.
  4540.                                          To keep things simple, 
  4541. let's assume SARAH does not have any folders hiding inside it, or 
  4542. you don't wish to copy any such folders. Since this is a simple 
  4543. copying job, you can probably use the simple ``copy'' command 
  4544. instead of ``xcopy'' and just say:
  4545. C:\>copy sarah a:
  4546.                                          But suppose you run into 
  4547. this hassle: the floppy's too small to hold all SARAH's files. 
  4548. Then you must copy SARAH's files to a pile of floppies. One way 
  4549. to do that is to say:
  4550. C:\>backup sarah a:
  4551. But that fills the floppies with files that are useless until you 
  4552. say ``restore''.
  4553.                                          To copy SARAH's files to 
  4554. a pile of floppies, try the following trick instead. This trick 
  4555. works if each file in SARAH is brief (so that no single file is 
  4556. too long to fit on a floppy).
  4557.                                          Say:
  4558. C:\>attrib +a sarah\*.*
  4559. Then insert the first formatted floppy and say:
  4560. C:\>xcopy sarah a: /m
  4561.                                          The computer will copy 
  4562. some files from SARAH to the floppy. When that floppy gets full, 
  4563. the computer will say ``Insufficient disk space'' and stop 
  4564. copying.
  4565.                                          Then insert the second 
  4566. floppy. Say ``xcopy sarah a: /m'' again (by retyping it or by 
  4567. pressing the F3 key or the up-arrow key). Press the ENTER key at 
  4568. the end of that command. The computer will continue where it left 
  4569. off: it will copy different files onto that second floppy.
  4570.                                          When the computer says 
  4571. ``Insufficient disk space'' again, insert the third floppy, and 
  4572. say ``xcopy sarah a: /m'' again (and press ENTER). Keep inserting 
  4573. floppies and saying ``xcopy sarah a: /m'', until the computer is 
  4574. done and no longer says ``Insufficient disk space''.